【FSFA 读书笔记】Ch 2 Computer Foundatinons(1)

简介: Data Organization 1. 进制转换。   按照正常的书写顺序写一个数字(无论多少进制),其中最左边的列称为“最高有效符号”,最右边的列称为“最低有效符号”。   (The right-most column is called the least significant sym...
Data Organization
1. 进制转换。
  按照正常的书写顺序写一个数字(无论多少进制),其中最左边的列称为“最高有效符号”,最右边的列称为“最低有效符号”。
  (The right-most column is called the least significant symbol, and the left-most column is called the most significant symbol.)
  二进制、十进制与十六进制转换表,学过数电一定对这个很熟悉~
 
2. Data sizes
在存储 多字节数据时,有“大端法”和“小端法”两种模式,区别在于把放置“最高有效符号”和“最低有效符号”的顺序。
(Computers differ in how they organize multiple-byte values. Some of them use  big-endian ordering and put the most significant byte of the number in the first storage byte, and others use little-endian ordering and put the least significant byte of the number in the first storage byte.)
二者的区别可从这张图上很直观的看出来
 
3. 字符编码
为了存储非数值类型的数据(字符),我们以各种标准来编码字符,比如ASCII和Unicode

(...to stores letters and sentences. The most common technique is to encode the characters
using ASCII or Unicode.)

ASCII码由于只占一个字节,因此不受大小端模式的影响。

(The endian ordering of a system does not play a role in how the characters are stored because these are separate 1-byte values.)

 
4. 数据结构 
数据结构描述了数据的布局(或者我理解为一种协议),程序根据这些约定好的布局,访问特定数据域得到目标值。
(Computers know the layout of the data because of data structures.
A data structure describes how data are laid out. It works like a template or map.
The data structure is broken up into  fields, and each field has a size and name, although this information is not saved with the  data.)
 
5. 标志位
有时需要的信息是二值的,一个位即可存储,然而计算机的最小存储单位是字节,这时可把若干位组合成一个字节,每一位称作一个标志位。
(这时各种强大的位运算可以大显身手了~)
(A more efficient  method is to pack several of these binary conditions into one value. Each bit in the value  corresponds to a feature or option.)
 
Booting Process
下图虚线描述了计算机通电后控制权的转交过程,即BIOS->MBR->VBR->OS中的引导代码
目录
相关文章
|
存储 缓存 Shell
【CSAPP随笔】CH2:A Tour of Computer Systems | 计算机系统漫游
【CSAPP随笔】CH2:A Tour of Computer Systems | 计算机系统漫游
141 0
|
IDE 开发工具
【FSFA 读书笔记】Ch 2 Computer Foundatinons(2)
Hard Disk Technology 1. 机械硬盘内部构造 几个重要概念:Sector(扇区),Head(读写头),Track(磁道),Cylinder(柱面)。 如果一个文件比较大,磁盘的写入顺序如下,因此有了后面的CHS地址表示:   写满一个扇区->磁盘旋转,写同磁道的下一个扇区...
1073 0
|
Windows 存储 Unix
【FSFA 读书笔记】Ch4 Volume Analysis & Cr 5 PC-based Partitions
Volume Analysis 1. “卷”可以理解为从逻辑上对物理存储设备的重新编制,便于操作系统管理。 (A volume is a collection of addressable sectors that an Operating System (OS) or application can use for data storage.) 每个卷的第一个扇区通常是它的引导记录(VBR)(可以把整个磁盘看成一个更大的卷),引导记录内应包含对它所管辖范围内的分区表。
1168 0
|
3月前
|
存储 监控 分布式数据库
ClickHouse分布式数据库动态伸缩(弹性扩缩容)的实现
实现ClickHouse数据库的动态伸缩需要持续的维护和精细的操作。从集群配置到数据迁移,再到监控和自动化,每一步都要仔细管理以确保服务的可靠性和性能。这些活动可以显著提高应用的响应性和成本效率,帮助业务根据实际需求灵活调整资源分配。
194 10
|
5月前
|
关系型数据库 MySQL 定位技术
MySQL与Clickhouse数据库:探讨日期和时间的加法运算。
这一次的冒险就到这儿,期待你的再次加入,我们一起在数据库的世界中找寻下一个宝藏。
209 9
|
12月前
|
存储 关系型数据库 MySQL
一个项目用5款数据库?MySQL、PostgreSQL、ClickHouse、MongoDB区别,适用场景
一个项目用5款数据库?MySQL、PostgreSQL、ClickHouse、MongoDB——特点、性能、扩展性、安全性、适用场景比较
|
10月前
|
SQL Unix OLAP
ClickHouse安装教程:开启你的列式数据库之旅
ClickHouse 是一个高性能的列式数据库管理系统,适用于在线分析处理(OLAP)。本文介绍了 ClickHouse 的基本使用步骤,包括下载二进制文件、安装应用、启动服务器和客户端、创建表、插入数据以及查询新表。还提到了图形客户端 DBeaver 的使用,使操作更加直观。通过这些步骤,用户可以快速上手并利用 ClickHouse 的强大性能进行数据分析。
1018 4
|
存储 SQL 缓存
数据库测试|Elasticsearch和ClickHouse的对决
由于目前市场上主流的数据库有许多,这次我们选择其中一个比较典型的Elasticsearch来和ClickHouse做一次实战测试,让大家更直观地看到真实的比对数据,从而对这两个数据库有更深入的了解,也就能理解为什么我们会选择ClickHouse。
数据库测试|Elasticsearch和ClickHouse的对决
|
12月前
|
存储 分布式计算 数据库
阿里云国际版设置数据库云分析工作负载的 ClickHouse 版
阿里云国际版设置数据库云分析工作负载的 ClickHouse 版
|
12月前
|
存储 关系型数据库 MySQL
四种数据库对比MySQL、PostgreSQL、ClickHouse、MongoDB——特点、性能、扩展性、安全性、适用场景
四种数据库对比 MySQL、PostgreSQL、ClickHouse、MongoDB——特点、性能、扩展性、安全性、适用场景

热门文章

最新文章

推荐镜像

更多