当前位置: 首页 > java >正文

ICS丨Chapter 1 Introduction to Computer System

Chapter 1 Introduction to Computer System

Courses About Systems:

  1. DBMS
  2. Distributed Systems
  3. Compilers
  4. Architecture
  5. Operating Systems
  6. e.t.c.
  • 1. Brief Introduction
    • 1.1. What’s about CSAPP?
    • 1.2. Power of Abstraction
    • 1.3. Importance of understanding HOW things work
  • 2. Class 1 Notes : Bits,Bytes and Integers
    • 2.1. Representing data as bits
    • 2.2. Bit-level manipulations
    • Integers
      • Representation : unsigned and signed

1. Brief Introduction

This part is about CSAPP Chapter 1

1.1. What’s about CSAPP?

  1. System Knowledge
    • How hardware and software work together
  2. Useful outcomes

1.2. Power of Abstraction

  1. tiers of computer system
    • Software
      • Application
      • System Software
    • Hardware
  2. Proper Abstraction
    • Hardware
      • Processor
      • Main memory
      • I/o devices
    • 1-3 Processes
      如何在进程之间切换?
      进程内容之间是如何组织的?——虚拟内存
    • 2-3 Virtual Memory
    • 3-3 Files

1.3. Importance of understanding HOW things work

  1. Why?
    • Not only abstraction, but also reality
  2. Most CS courses emphasize abstraction
    • Abstract data types
    • Asymptotic analysis(渐进分析)

2. Class 1 Notes : Bits,Bytes and Integers

CSAPP Chapter 2 信息的表示和处理
续Class 2 Notes

2.1. Representing data as bits

Bits:

  • Each bit is 0 or 1
  • Why bits? Electronic Implementation(电子实现)
    • Easy to store with bistable elements(双稳元件)
    • Reliably transmitted on noisy and inaccurate wires

What is Byte:

  • 1 Byte = 8 bits
    • Binary 0000000 0 2 t o 1111111 1 2 00000000_{2} to 11111111_{2} 000000002to111111112
    • Decimal 0 10 t o 25 5 10 0_{10} to 255_{10} 010to25510
    • Hexadecimal 0 0 16 t o F F 16 00_{16} to FF_{16} 0016toFF16

Hexadecimal Reference Table

DecimalHexadecimalBinary
000000
110001
220010
330011
440100
550101
660110
770111
881000
991001
10A1010
11B1011
12C1100
13D1101
14E1110
15F1111

2.2. Bit-level manipulations

boolean algebra(布尔代数)

General Operators:
& | ^ ~
Shift Operation(移位运算):
<< >>(移位运算符)

Contrast: Logic Operations in C

  • Contrast to Bit-Level Operators
    • Logic Operations:
      && || !
      • View 0 as False
      • Anything nonzero is True
      • Always return 0 or 1
  • Examples:
    • !0x41 = 0
    • !0x00 = 1
    • !!0x41 = 1
    • p && *p ( avoid null pointer dereference(避免空指针解引用) )

Problem : Symmetric Difference(对称差) ? P15

Integers

Representation : unsigned and signed

unsigned and signed

Important Concept : Two's Complement(补码)

http://www.xdnf.cn/news/476.html

相关文章:

  • C++中chrono计时器的简单使用示例
  • CF1016赛后总结
  • 常见网络问题
  • 2025年第16届蓝桥杯嵌入式竞赛学习笔记(十四):RTC实时时钟
  • 算法--打表法
  • JS案例-基于Proxy的响应式数据
  • [密码学基础]国密算法深度解析:中国密码标准的自主化之路
  • 在已有的vue项目中使用vuex
  • 鸿蒙开发11-ARKUI框架
  • 谷歌称LLMs.txt类似于关键词元标签:SEO影响与应对策略
  • 提升电脑性能!Windows超级管理器,免费使用,功能全面!
  • 开启健康养生新旅程
  • 单片机毕业设计选题物联网计算机电气电子类
  • 数字孪生赋能管理系统,降本增效立竿见影
  • 使用Spring Validation实现参数校验
  • 使用 MicroPython 在 ESP32-S3 上驱动 WS2812 LED 彩虹灯
  • 第34讲|遥感大模型对比实战:SAM vs. CLIP vs. iSAM
  • Policy Gradient思想、REINFORCE算法,以及贪吃蛇小游戏(四)(完结)
  • 基于 Linux 环境的办公系统开发方案
  • 智能座舱架构与芯片 - 背景篇
  • 医院科研科AI智能科研支撑平台系统设计架构方案探析
  • 点云(Point Cloud)介绍
  • Cocos Creater打包安卓App添加隐私弹窗详细步骤+常见问题处理
  • 第33讲|遥感大模型在地学分类中的初探与实战
  • PyTorch :优化的张量库
  • 数据从辅存调入主存,页表中一定存在
  • websocket和SSE学习记录
  • 得物官网sign签名逆向分析
  • Qt QWidget介绍及学习方法路线分享
  • 服务治理-服务注册