当前位置:网站首页>File management: logical structure
File management: logical structure
2022-07-29 15:34:00 【Uncertainty!!】
文件管理:文件的逻辑结构
逻辑结构:在用户看来,How the data inside the file is organized
物理结构:在OS看来,How the data of the file is placed in external storage(磁盘)中的
1.1 无结构文件(流式文件)
无结构文件:The internal data of the file is composed of a series of binary streams or character streams
下图来自王道考研操作系统
1.2 有结构文件(记录式文件)
有结构文件:Consists of a set of similar records.如数据库表
A record consists of multiple data items
One data item in each record is designated as a key,Used to uniquely distinguish this record
下图来自王道考研操作系统
According to whether the storage space occupied by each record is equal,Divided into fixed-length records and variable-length records
定长记录
可变长记录
1.2.1 顺序文件
下图改编自王道考研操作系统
1.2.2 索引文件
Fixed-length records can be accessed randomly,That is, you can jump directly to the location you want to visit
Variable-length records cannot be accessed randomly,You cannot jump directly to the location you want to visit,You can only search backwards from the beginning,为了解决这个问题,We build an index table for the file
索引表本身是定长记录的顺序文件
下图改编自王道考研操作系统
1.2.3 索引顺序文件
每个记录对应一个索引表项,Sometimes it occurs that the index table occupies more storage than the file itself,So we lead to the index order file
index table on the left,On the right is the sequence file
边栏推荐
- C语言 4:汇编语言指令介绍
- 展讯模块读写IMEI
- 令人难以置信的DeepMind数据库现在包括了科学界已知的几乎所有蛋白质
- AOP实现企业级API访问接口监控(通过Google Guava缓存数据)
- 基于C语言实现的LL(1)分析
- WOLFLAB一方老师带你解读虚拟云网络《VMware NSX-T卷2》-1
- ES6 从入门到精通 # 11:Map 数据类型
- 【LeetCode】350. 两个数组的交集 II
- Couldn‘t create temporary file /tmp/apt.conf.uko4Kd for passing config to apt-key
- C语言 5:bool类型,关系表达式,逻辑表达式,分支语句,函数调用机制,break,continue,goto,return/exit跳转语句
猜你喜欢
随机推荐
深度学习-神经网络
Work Efficiency - Fifteen minutes allows you to quickly learn Markdown syntax to proficient in typesetting practice notes
CNCF Keith Chan:分布式云时代,云原生社区的发展与趋势
瑞萨RZ/G2L处理器详细测评
【Try to Hack】IDS入侵检测系统
又一位AI大佬辞职进体制内!AI的尽头是编制?
gateway基本使用
小米法务部:成功打击一处伪造Redmi蓝牙耳机窝点,查扣假冒伪劣产品2032个
Flink SQL Hudi 实战
【yolov7系列二】正负样本分配策略
【IIC通信】Chap.2 (I2C)IIC协议的特点;为什么IIC需要开漏输出、上拉电阻?
SkiaSharp 之 WPF 自绘 弹动小球(案例版)
53 LeetCode 】 【. Most architectural array and
【LeetCode】88. 合并两个有序数组
文件管理:文件的物理结构
观光公交题解
【LeetCode】350. 两个数组的交集 II
ArcGIS Pro与ArcGis区别
即刻体验 | 借助 CTS-D 进一步提升应用设备兼容性
【 LeetCode 】 217. Duplicate elements








