Chapter 11 File Systems and Directories Chapter Goals
![Chapter 11 File Systems and Directories Chapter 11 File Systems and Directories](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-1.jpg)
![Chapter Goals • Describe the purpose of files, file systems, and directories • Distinguish Chapter Goals • Describe the purpose of files, file systems, and directories • Distinguish](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-2.jpg)
![Chapter Goals • Compare and contrast sequential and direct file access • Discuss the Chapter Goals • Compare and contrast sequential and direct file access • Discuss the](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-3.jpg)
![File Systems File A named collection of related data, used for organizing secondary memory File Systems File A named collection of related data, used for organizing secondary memory](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-4.jpg)
![Text and Binary Files Text file A file that contains characters from the ASCII Text and Binary Files Text file A file that contains characters from the ASCII](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-5.jpg)
![Text and Binary Files The terms text file and binary file are somewhat misleading Text and Binary Files The terms text file and binary file are somewhat misleading](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-6.jpg)
![File Types File Type The kind of information contained in a document Most files, File Types File Type The kind of information contained in a document Most files,](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-7.jpg)
![File Types What kind of files are – Chapter. doc – Figure 1. jpg File Types What kind of files are – Chapter. doc – Figure 1. jpg](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-8.jpg)
![File Access Sequential access The technique in which data in a file is accessed File Access Sequential access The technique in which data in a file is accessed](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-9.jpg)
![File Access Figure 11. 2 Sequential file access 11 File Access Figure 11. 2 Sequential file access 11](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-10.jpg)
![File Access Figure 11. 3 Direct file access 12 File Access Figure 11. 3 Direct file access 12](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-11.jpg)
![File Access Which file access do you think is easier to implement: sequential access File Access Which file access do you think is easier to implement: sequential access](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-12.jpg)
![File Protection File protection The process of limiting file access – In multiuser systems, File Protection File protection The process of limiting file access – In multiuser systems,](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-13.jpg)
![File Protection An example of a file protection scheme is the file settings in File Protection An example of a file protection scheme is the file settings in](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-14.jpg)
![Directory Trees Recall that a directory is a named group of files. A directory Directory Trees Recall that a directory is a named group of files. A directory](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-15.jpg)
![Directory Trees Parent directory The containing directory Subdirectory The directory being contained Directory tree Directory Trees Parent directory The containing directory Subdirectory The directory being contained Directory tree](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-16.jpg)
![Directory Trees Figure 11. 4 A Windows directory tree 18 Directory Trees Figure 11. 4 A Windows directory tree 18](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-17.jpg)
![Directory Trees At any point in time, you can be thought of as working Directory Trees At any point in time, you can be thought of as working](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-18.jpg)
![A Unix Directory Tree Figure 11. 5 A Unix directory tree Figure 11. 5 A Unix Directory Tree Figure 11. 5 A Unix directory tree Figure 11. 5](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-19.jpg)
![Path Names Path A text designation of the location of a file or subdirectory Path Names Path A text designation of the location of a file or subdirectory](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-20.jpg)
![Path Names Absolute paths C: Program FilesMS OfficeWin. Word. exe C: My Documentslettersapplicationsva. Tech. Path Names Absolute paths C: Program FilesMS OfficeWin. Word. exe C: My Documentslettersapplicationsva. Tech.](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-21.jpg)
![Disk Scheduling Processes are waiting for I/O to be performed. Which of those waiting Disk Scheduling Processes are waiting for I/O to be performed. Which of those waiting](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-22.jpg)
![Disk Scheduling As a computer deals with multiple processes over a period of time, Disk Scheduling As a computer deals with multiple processes over a period of time,](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-23.jpg)
![Disk Scheduling Figure 11. 5 A magnetic disk drive Remember seek time and latency? Disk Scheduling Figure 11. 5 A magnetic disk drive Remember seek time and latency?](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-24.jpg)
![Disk Scheduling First-Come, First-Served (FCFS) Requests are serviced in the order they arrive, without Disk Scheduling First-Come, First-Served (FCFS) Requests are serviced in the order they arrive, without](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-25.jpg)
![Disk Scheduling Ordered cylinder requests: 49, 91, 22, 61, 7, 62, 33, 35 Read/write Disk Scheduling Ordered cylinder requests: 49, 91, 22, 61, 7, 62, 33, 35 Read/write](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-26.jpg)
![Disk Scheduling SCAN Disk Scheduling works like an elevator – An elevator is designed Disk Scheduling SCAN Disk Scheduling works like an elevator – An elevator is designed](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-27.jpg)
![Disk Scheduling Ordered cylinder requests: 49, 91, 22, 61, 7, 62, 33, 35 Read/write Disk Scheduling Ordered cylinder requests: 49, 91, 22, 61, 7, 62, 33, 35 Read/write](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-28.jpg)
![Ethical Issues Spam How many spam messages have you received today? Why is spam Ethical Issues Spam How many spam messages have you received today? Why is spam](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-29.jpg)
- Slides: 29
![Chapter 11 File Systems and Directories Chapter 11 File Systems and Directories](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-1.jpg)
Chapter 11 File Systems and Directories
![Chapter Goals Describe the purpose of files file systems and directories Distinguish Chapter Goals • Describe the purpose of files, file systems, and directories • Distinguish](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-2.jpg)
Chapter Goals • Describe the purpose of files, file systems, and directories • Distinguish between text and binary files • Identify various file types by their extensions • Explain how file types improve file usage • Define the basic operations on a file 2
![Chapter Goals Compare and contrast sequential and direct file access Discuss the Chapter Goals • Compare and contrast sequential and direct file access • Discuss the](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-3.jpg)
Chapter Goals • Compare and contrast sequential and direct file access • Discuss the issues related to file protection • Describe a directory tree • Create absolute and relative paths for a directory tree • Describe several disk-scheduling algorithms 3
![File Systems File A named collection of related data used for organizing secondary memory File Systems File A named collection of related data, used for organizing secondary memory](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-4.jpg)
File Systems File A named collection of related data, used for organizing secondary memory File system The operating system's logical view of the files it manages Directory A named group of files 4
![Text and Binary Files Text file A file that contains characters from the ASCII Text and Binary Files Text file A file that contains characters from the ASCII](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-5.jpg)
Text and Binary Files Text file A file that contains characters from the ASCII or Unicode character sets Binary file A file that contains data in a specific format, requiring special interpretation of its bits 5
![Text and Binary Files The terms text file and binary file are somewhat misleading Text and Binary Files The terms text file and binary file are somewhat misleading](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-6.jpg)
Text and Binary Files The terms text file and binary file are somewhat misleading Ultimately, all information on a computer is stored as binary digits Text files are formatted as chunks of 8 or 16 bits, interpreted as characters Binary files are formatted in some other special format 6
![File Types File Type The kind of information contained in a document Most files File Types File Type The kind of information contained in a document Most files,](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-7.jpg)
File Types File Type The kind of information contained in a document Most files, regardless of format, contain a specific type of information File extension Part of a file name that indicates the type File names are often in two parts: File name. File Extension 7
![File Types What kind of files are Chapter doc Figure 1 jpg File Types What kind of files are – Chapter. doc – Figure 1. jpg](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-8.jpg)
File Types What kind of files are – Chapter. doc – Figure 1. jpg – Interview. wav – My. Favorite. mp 3 Figure 11. 1 Some common file types and their extensions What's the advantage of using the appropriate extension? 8
![File Access Sequential access The technique in which data in a file is accessed File Access Sequential access The technique in which data in a file is accessed](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-9.jpg)
File Access Sequential access The technique in which data in a file is accessed in a linear fashion; to get the last record, you must read all of the records Direct access The technique in which data in a file is conceptually divided into numbered logical records and accessed directly, by specifying logical record numbers 10
![File Access Figure 11 2 Sequential file access 11 File Access Figure 11. 2 Sequential file access 11](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-10.jpg)
File Access Figure 11. 2 Sequential file access 11
![File Access Figure 11 3 Direct file access 12 File Access Figure 11. 3 Direct file access 12](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-11.jpg)
File Access Figure 11. 3 Direct file access 12
![File Access Which file access do you think is easier to implement sequential access File Access Which file access do you think is easier to implement: sequential access](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-12.jpg)
File Access Which file access do you think is easier to implement: sequential access or direct access? 13
![File Protection File protection The process of limiting file access In multiuser systems File Protection File protection The process of limiting file access – In multiuser systems,](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-13.jpg)
File Protection File protection The process of limiting file access – In multiuser systems, file protection is of primary importance – We don’t want one user to be able to access another user’s files unless the access is specifically allowed – A file protection mechanism determines who can use a file and for what general purpose Why is file protection important? Give two examples 14
![File Protection An example of a file protection scheme is the file settings in File Protection An example of a file protection scheme is the file settings in](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-14.jpg)
File Protection An example of a file protection scheme is the file settings in the Unix operating system, which are divided into three categories 15
![Directory Trees Recall that a directory is a named group of files A directory Directory Trees Recall that a directory is a named group of files. A directory](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-15.jpg)
Directory Trees Recall that a directory is a named group of files. A directory can be contained within another directory Edition 3 CSI PP Slides … Chapter 01. ppt 16 Directory Chapter 17. ppt Files
![Directory Trees Parent directory The containing directory Subdirectory The directory being contained Directory tree Directory Trees Parent directory The containing directory Subdirectory The directory being contained Directory tree](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-16.jpg)
Directory Trees Parent directory The containing directory Subdirectory The directory being contained Directory tree A logical view of a file system; a structure showing the nested directory organization of a file system Root directory The directory at the highest level 17
![Directory Trees Figure 11 4 A Windows directory tree 18 Directory Trees Figure 11. 4 A Windows directory tree 18](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-17.jpg)
Directory Trees Figure 11. 4 A Windows directory tree 18
![Directory Trees At any point in time you can be thought of as working Directory Trees At any point in time, you can be thought of as working](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-18.jpg)
Directory Trees At any point in time, you can be thought of as working in a particular location (that is, a particular subdirectory) Working directory The subdirectory in which you are working 19
![A Unix Directory Tree Figure 11 5 A Unix directory tree Figure 11 5 A Unix Directory Tree Figure 11. 5 A Unix directory tree Figure 11. 5](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-19.jpg)
A Unix Directory Tree Figure 11. 5 A Unix directory tree Figure 11. 5 A UNIX directory tree 20
![Path Names Path A text designation of the location of a file or subdirectory Path Names Path A text designation of the location of a file or subdirectory](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-20.jpg)
Path Names Path A text designation of the location of a file or subdirectory in a file system Absolute path A path that begins at the root and includes all successive subdirectories Relative path A path name that begins at the current working directory 21
![Path Names Absolute paths C Program FilesMS OfficeWin Word exe C My Documentslettersapplicationsva Tech Path Names Absolute paths C: Program FilesMS OfficeWin. Word. exe C: My Documentslettersapplicationsva. Tech.](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-21.jpg)
Path Names Absolute paths C: Program FilesMS OfficeWin. Word. exe C: My Documentslettersapplicationsva. Tech. doc C: WindowsSystemQuick. Time If current working directory is C: My Documentsletters Relative paths cancel. Mag. doc applicationscal. State. doc 22 Distinguish between absolute and relative paths
![Disk Scheduling Processes are waiting for IO to be performed Which of those waiting Disk Scheduling Processes are waiting for I/O to be performed. Which of those waiting](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-22.jpg)
Disk Scheduling Processes are waiting for I/O to be performed. Which of those waiting should be performed next? Recall that I/O is the slowest aspect of any computing system 23
![Disk Scheduling As a computer deals with multiple processes over a period of time Disk Scheduling As a computer deals with multiple processes over a period of time,](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-23.jpg)
Disk Scheduling As a computer deals with multiple processes over a period of time, a list of requests to access the disk builds up Disk scheduling The technique that the operating system uses to determine which requests to satisfy first 24
![Disk Scheduling Figure 11 5 A magnetic disk drive Remember seek time and latency Disk Scheduling Figure 11. 5 A magnetic disk drive Remember seek time and latency?](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-24.jpg)
Disk Scheduling Figure 11. 5 A magnetic disk drive Remember seek time and latency?
![Disk Scheduling FirstCome FirstServed FCFS Requests are serviced in the order they arrive without Disk Scheduling First-Come, First-Served (FCFS) Requests are serviced in the order they arrive, without](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-25.jpg)
Disk Scheduling First-Come, First-Served (FCFS) Requests are serviced in the order they arrive, without regard to the current position of the heads Shortest-seek-time-first (SSTF) Disk heads are moved the minimum amount possible to satisfy a pending request Scan Disk heads continuously move in and out servicing requests as they are encountered 26
![Disk Scheduling Ordered cylinder requests 49 91 22 61 7 62 33 35 Readwrite Disk Scheduling Ordered cylinder requests: 49, 91, 22, 61, 7, 62, 33, 35 Read/write](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-26.jpg)
Disk Scheduling Ordered cylinder requests: 49, 91, 22, 61, 7, 62, 33, 35 Read/write heads at Cylinder 26 In what order are they serviced if no more requests arrive? FCFS: SSTF: 27
![Disk Scheduling SCAN Disk Scheduling works like an elevator An elevator is designed Disk Scheduling SCAN Disk Scheduling works like an elevator – An elevator is designed](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-27.jpg)
Disk Scheduling SCAN Disk Scheduling works like an elevator – An elevator is designed to visit floors that have people waiting. In general, an elevator moves from one extreme to the other (say, the top of the building to the bottom), servicing requests as appropriate – The SCAN disk-scheduling algorithm works in a similar way, except instead of moving up and down, the read/write heads move in toward the spindle, then out toward the platter edge, then back toward the spindle, and so forth 28
![Disk Scheduling Ordered cylinder requests 49 91 22 61 7 62 33 35 Readwrite Disk Scheduling Ordered cylinder requests: 49, 91, 22, 61, 7, 62, 33, 35 Read/write](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-28.jpg)
Disk Scheduling Ordered cylinder requests: 49, 91, 22, 61, 7, 62, 33, 35 Read/write heads at Cylinder 26 moving toward cylinder 1 In what order are they serviced if no more requests arrive? SCAN 29
![Ethical Issues Spam How many spam messages have you received today Why is spam Ethical Issues Spam How many spam messages have you received today? Why is spam](https://slidetodoc.com/presentation_image_h2/daefd3f711224ae001fb28e007cfe947/image-29.jpg)
Ethical Issues Spam How many spam messages have you received today? Why is spam expensive? Have you ever sent spam? Explain the CAN-SPAM Act. 30
Strategic goals tactical goals operational goals
Strategic goals tactical goals operational goals
File-file yang dibuat oleh user pada jenis file di linux
Directories pricing tables schedules and name list
Subject directory vs search engine
Static hashing and dynamic hashing
Knark hides or unhides files or directories. it ?
Makefile example multiple source files
General goals and specific goals
Examples of generic goals and product-specific goals
Physical image vs logical image
Fungsi dari create file pada operasi-operasi file (cont.)
Distributed file system
What does a markup tag tells the web browser
In a file-oriented information system, a transaction file
Module 4 operating systems and file management
Scheduling in batch system
Mobile file system
Distributed file systems
Allows the replication of only immutable files.
Decision support systems and intelligent systems
Principles of complex systems for systems engineering
Embedded systems vs cyber physical systems
Engineering elegant systems: theory of systems engineering
Chapter 24 the immune and lymphatic systems and cancer
Lymph diagram
A repetition of or return to criminal behavior *
Advantages and disadvantages of observation method
File.php?chapter=
Enter.php?chapter=