ch10 - perating System Concepts with Java 7 th Edition, Nov...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: perating System Concepts with Java 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne 2007 Chapter 10: File-System Interface 10.2 Silberschatz, Galvin and Gagne 2007 Operating System Concepts with Java 7 th Edition, Nov 15, 2006 Chapter 10: File-System Interface File Concept Access Methods Directory Structure File-System Mounting File Sharing Protection 10.3 Silberschatz, Galvin and Gagne 2007 Operating System Concepts with Java 7 th Edition, Nov 15, 2006 Objectives To explain the function of file systems To describe the interfaces to file systems To discuss file-system design tradeoffs, including access methods, file sharing, file locking, and directory structures To explore file-system protection 10.4 Silberschatz, Galvin and Gagne 2007 Operating System Concepts with Java 7 th Edition, Nov 15, 2006 File Concept Contiguous logical address space Types: Data numeric character binary Program 10.5 Silberschatz, Galvin and Gagne 2007 Operating System Concepts with Java 7 th Edition, Nov 15, 2006 File Structure None - sequence of words, bytes Simple record structure Lines Fixed length Variable length Complex Structures Formatted document Relocatable load file Can simulate last two with first method by inserting appropriate control characters Who decides: Operating system Program 10.6 Silberschatz, Galvin and Gagne 2007 Operating System Concepts with Java 7 th Edition, Nov 15, 2006 File Attributes Name only information kept in human-readable form Identifier unique tag (number) identifies file within file system Type needed for systems that support different types Location pointer to file location on device Size current file size Protection controls who can do reading, writing, executing Time, date, and user identification data for protection, security, and usage monitoring Information about files are kept in the directory structure, which is maintained on the disk 10.7 Silberschatz, Galvin and Gagne 2007 Operating System Concepts with Java 7 th Edition, Nov 15, 2006 File Operations File is an abstract data type Create Write Read Reposition within file Delete Truncate Open(F i ) search the directory structure on disk for entry F i , and move the content of entry to memory Close (F i ) move the content of entry F i in memory to directory structure on disk 10.8 Silberschatz, Galvin and Gagne 2007 Operating System Concepts with Java 7 th Edition, Nov 15, 2006 Open Files Several pieces of data are needed to manage open files: File pointer: pointer to last read/write location, per process that has the file open File-open count: counter of number of times a file is open to allow removal of data from open-file table when last processes closes it Disk location of the file: cache of data access information Access rights: per-process access mode information 10.910....
View Full Document

Page1 / 42

ch10 - perating System Concepts with Java 7 th Edition, Nov...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online