西安电子科技大学:《操作系统 Operating Systems》课程教学资源(PPT课件讲稿)Chapter 06 文件系统 File Systems(主讲:高海昌)

Operating Systems Chapter 6: File Systems H 6.1 Files 46.2 Directories E 6.3 File system implementation H 6.4 Example file systems Gao Haichang, Software School, Xidian University 3
Operating Systems Gao Haichang , Software School, Xidian University 3 Chapter 6: File Systems 6.1 Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems

Operating Systems Long-term Information Storage Three essential requirements: Must be possible to store a large amount of information 2. Information stored must survive the termination of the process using it 3. Multiple processes must be able to access the information concurrently The usual solution to all these problems is to store information on disks and other external media in units called files Gao Haichang, Software School, Xidian University
Operating Systems Gao Haichang , Software School, Xidian University 4 Long-term Information Storage Three essential requirements: 1. Must be possible to store a large amount of information 2. Information stored must survive the termination of the process using it 3. Multiple processes must be able to access the information concurrently The usual solution to all these problems is to store information on disks and other external media in units called files

Operating Systems C File Naming G The extra rules for naming vary somewhat from system to system. m bruce device. multimedia E 123, urgent! fig 2-1 a longlongagotherewasawarbetweentthebirdsandthebeasts (<255) G Some file systems distinguish between upper and lower ease letters Un), whereas others do not Ms-dos) G Many OS support two-part file names, with the two parts separated by a period, as in prog. c. The part following the period is called the file extension. Gao Haichang, Software School, Xidian University
Operating Systems Gao Haichang , Software School, Xidian University 5 File Naming The extra rules for naming vary somewhat from system to system. bruce, device, multimedia 123, urgent!, fig.2-1 longlongagotherewasawarbetweentthebirdsandthebeasts (<255) Some file systems distinguish between upper and lower ease letters (UNIX), whereas others do not (MS-DOS). Many OS support two-part file names, with the two parts separated by a period, as in prog.c. The part following the period is called the file extension

Operating Systems File Naming Extension Meaning file. bak Backup file file. c c source program file. gif Compuserve Graphical Interchange format image file. hl Help file file.html World Wide Web Hyper Text Markup language document file.jpg Still picture encoded with the JPEG standard file.mp3 Music encoded in mPEG layer 3 audio format file. mpg Movie encoded with the mPeg standard file. o Object file(compiler output, not yet linked file. pdf Portable Document Format file file. ps Postscript file file. tex Input for the tEX formatting program file. txt General text file file.zip Compressed archive Typical file extensions. Gao Haichang, Software School, Xidian University
Operating Systems Gao Haichang , Software School, Xidian University 6 File Naming Typical file extensions

Operating Systems File structure 1 By 1 Record Ant‖Fox‖Pi CatCow‖bog‖doat‖uion‖ow‖Pony‖ Rat Worm Hen‖ Ibis‖Lamb (a) byte sequence (UNIX and Windows (b)record sequence (80-character punched card) (c)tree(commercial data processing large mainframe computers) G Three kinds of files Gao Haichang, Software School, Xidian University
Operating Systems Gao Haichang , Software School, Xidian University 7 File Structure (a) byte sequence (UNIX and Windows) (b) record sequence (80-character punched card) (c) tree (commercial data processing large mainframe computers) Three kinds of files

Operating Systems File Types Sort by usage A system files A user files E library files e Sort by data format A source files object files H executable files e Sort by access control attribution E executable-only files d-only file H read/write files Gao Haichang, Software School, Xidian University
Operating Systems Gao Haichang , Software School, Xidian University 8 File Types Sort by usage system files user files library files Sort by data format source files object files executable files Sort by access control attribution executable-only files read-only files read/write files

Operating Systems File Types(2) Sort by fi y le logical structure H structured files H unstructured files G Sort by file physical structure w sequential files H linking files A index files Gao Haichang, Software School, Xidian University
Operating Systems Gao Haichang , Software School, Xidian University 9 File Types (2) Sort by file logical structure structured files unstructured files Sort by file physical structure sequential files linking files index files

Operating Systems File Types (3) G uNX and windows have regular files and directories UNIX also has character and block special files. H Regular files: contain user information H Directories: system files for maintaining the structure of the file system a Character special files: related to lO r Block special files: used to model disks Regular files are generally either asci files or binary files. Gao Haichang, Software School, Xidian University 10
Operating Systems Gao Haichang , Software School, Xidian University 10 File Types (3) UNIX and Windows have regular files and directories. UNIX also has character and block special files. Regular files: contain user information. Directories: system files for maintaining the structure of the file system. Character special files: related to I/O. Block special files: used to model disks. Regular files are generally either ASCII files or binary files

Operating Systems File Types(4) Module Magic number Header Text size Data siz Date BSS size Object Symbol table size Owner module Entry point Protection Flag Header Text Object Data Relocation (a)an executable file symbol (b) An archive存档文件 Gao Haichang, Software School, Xidian University
Operating Systems Gao Haichang , Software School, Xidian University 11 File Types (4) (a) An executable file (b) An archive 存档文件

Operating Systems File Types(exercise) In an executable file, the instructions are usually put into the text segment. header, text, data, relocation bits, symbol table Gao Haichang, Software School, Xidian University 12
Operating Systems Gao Haichang , Software School, Xidian University 12 File Types (exercise) In an executable file, the instructions are usually put into the _______ segment. header, text, data, relocation bits, symbol table text
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 香港大学:Data Analysis - Factors Potentially Affecting Development.pptx
- 北京大学:《高级编译技术 Advanced Compiler Techniques》课程教学资源(PPT课件讲稿)Introduction to Optimizations.ppt
- 南京大学:《编译原理》课程教学资源(PPT课件讲稿)第四章 语法分析(戴新宇).pptx
- 《计算机组装与维修》课程教学资源(PPT课件讲稿)第十三章 局域网维护及常见故障处理.ppt
- 北京大学:《软件需求工程》课程教学资源(PPT课件讲稿)第十章 软件需求开发与管理工具.ppt
- 中国科学技术大学:《网络信息安全 NETWORK SECURITY》课程教学资源(PPT课件讲稿)第二章 数据加密技术基础.ppt
- 《汇编语言》课程教学资源(PPT课件讲稿)第6章 子程序.ppt
- 中国科学技术大学:《计算机体系结构》课程教学资源(PPT课件讲稿)MSI、MESI、分布式共享存储器体系结构、Models of Memory Consistency.pptx
- 《数据库系统概论》课程教学资源(PPT课件讲稿)第六章 数据库设计.ppt
- 电子科技大学:《汇编语言程序设计》课程教学资源(PPT课件)第一章 基础知识(主讲:詹瑾瑜).ppt
- 进程(PPT课件讲稿)Processes.pptx
- 《大学计算机基础》课程教学资源(PPT课件讲稿)第四章 Excel 2007电子表格.ppt
- 东南大学:《C++语言程序设计》课程教学资源(PPT课件讲稿)Chapter 11 Operator Overloading; String and Array Objects(主讲:东方).ppt
- 《计算机网络》课程实验教学大纲.pdf
- 广西医科大学:《计算机网络 Computer Networking》课程教学资源(PPT课件讲稿)Chapter 18 NETWORK DESIGN AND IMPLEMENTATION.pptx
- 《多媒体技术基础》课程教学资源(PPT课件讲稿)单元1 多媒体概述.ppt
- 中国科学技术大学:《并行算法实践》课程教学资源(PPT课件讲稿)上篇 并行程序设计导论 单元I 并行程序设计基础 第三章 并行程序设计简介.ppt
- 《计算机控制技术》课程教学资源(PPT课件讲稿)第二章 模拟量输出通道.ppt
- 哈尔滨工业大学:开放式中文实体关系抽取研究(导师:秦兵).pptx
- 兰州大学:《SOA & Web Service》教学资源(PPT课件讲稿)Lecture 5 Web Service Program(苏伟).ppt
- 南京大学:《自然语言处理 Natural Language Processing(NLP)》课程教学资源(PPT课件讲稿)自然语言处理概述、基于规则(知识工程)的传统自然语言处理方法(理性方法).ppt
- 香港科技大学:片上网络(PPT讲稿)network-on-chip(NoC)NoC Building Blocks.pptx
- 《数据结构》课程教学资源(PPT课件讲稿)第五章 数组.ppt
- 语义网与本体(PPT讲稿)Semantic Web & Ontology(元数据 Metadata).ppt
- 软件开发环境与工具(PPT讲稿)Software development environment and tool.ppt
- 哈尔滨工业大学:逻辑斯蒂回归与最大熵(PPT课件讲稿).pptx
- 《机器学习》教学资源(PPT讲稿)支持向量机 support vector machines.ppt
- 中国科学技术大学:《计算机视觉》课程教学资源(PPT课件讲稿)第二章 视觉的基本知识.ppt
- 《编译原理》课程教学资源(PPT课件讲稿)第二章 词法分析.ppt
- 《计算机网络》课程教学资源(PPT课件)第4讲 以太网组网及故障排除.ppt
- VB.Net程序设计基础(PPT课件讲稿).ppt
- 《计算机导论》课程教学资源(PPT课件讲稿)第9章 计算机学科方法论.ppt
- 厦门大学:《大数据技术原理与应用》课程教学资源(PPT课件讲稿,2017)第11章 图计算.ppt
- 《Visual Basic 6.0程序设计》课程教学资源(PPT课件)第四章 常用控件与窗体.ppt
- 大连工业大学:《计算机程序设计(C语言版)》课程教学资源(PPT课件讲稿,共十三章).pps
- 《高级语言程序设计》课程教学资源(试卷习题)试题五(无答案).doc
- 《计算机文化基础》课程教学大纲 Computer Culture Foundation.pdf
- 《图像处理与计算机视觉 Image Processing and Computer Vision》课程教学资源(PPT课件讲稿)Chapter 08 Stereo vision.pptx
- 《计算机网络 Computer Networking》课程教学资源(PPT课件讲稿,英文版)Chapter 6 Wireless and Mobile Networks.ppt
- Gas Systems Modeling andSimulation with MSC.EASY5:GD Advanced Class Notes(EAS105 Course Notes).ppt