当前位置:网站首页>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
边栏推荐
猜你喜欢

文件管理:文件的物理结构

【深度学习】深度学习刷SOTA的一堆trick

极市直播丨严彬-Unicorn:走向目标跟踪的大一统(ECCV2022 Oral)

我裁完兄弟们后,辞职了,转行做了一名小职员

CNCF Keith Chan:分布式云时代,云原生社区的发展与趋势

APP为什么用JSON协议与服务端交互:序列化相关知识

Why does APP use the JSON protocol to interact with the server: serialization related knowledge

数据库管控平台-awr报告采集(mysql/oracle)

AOP implementation enterprise API access interface monitoring (via Google Guava cache data)

Instant Messaging - New Software that Changes Social and Work Status
随机推荐
突破性能天花板!亚信数据库支撑 10 多亿用户,峰值每秒百万交易
MySQL Index Common Interview Questions (2022 Edition)
如何获取本地json
协同多智能体学习的价值分解网络的原理与代码复现
QT通过UDP分包传输大图像(测试可传6M)
CSP:重庆八中宏帆初级中学校新初二编程社C2024liuyanjia暑假一期集训总结(2/6))
手摸手实现Canal如何接入MySQL实现数据写操作监听
uni 的下拉式筛选菜单的功能/图片懒加载
Linux安装MySQL(超详细)
求连续90日每日的用户留存率 -- 全网唯一
Guangzhou Emergency Management Bureau released the top ten safety risks of hazardous chemicals in summer
ES6 从入门到精通 # 11:Map 数据类型
ST表(动态规划倍增思路离线维护区间极值问题)
微服务实战|集中配置中心Config非对称加密与安全管理
深圳见!云原生加速应用构建专场:来看云原生 FinOps、SRE、高性能计算场景最佳实践
22届大专应届软件的同学你找到工作了吗
使用Xshell和Xftp7跑学校服务器记录
【yolov7系列二】正负样本分配策略
The very city live 丨 being - Unicorn: towards the unification of target tracking (ECCV2022 Oral)
NLP自然语言处理-机器学习和自然语言处理介绍(三)