

































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Operating System File Management
Typology: Essays (university)
1 / 73
This page cannot be seen from the preview
Don't miss anything!


































































Eighth Edition By William Stallings
Long-term existence
Sharable between processes
Structure
Field
basic element of data
contains a single value
fixed or variable length
File
collection of related fields that can be treated as a unit by some application program
fixed or variable length
Record
Database
collection of similar records treated as a single entity may be referenced by name access control restrictions usually apply at the file level
collection of related data
relationships among elements of data are explicit
designed for use by a number of different applications
consists of one or more types of files
1 •^ should be able to create, delete, read, write and modify files
2 • may have controlled access to other users’ files
3 •^ may control what type of accesses are allowed to the files
4 •^ should be able to restructure the files in a form appropriate to the problem
5 •^ should be able to move data between files
6 •^ should be able to back up and recover files in case of damage
7 •^ should be able to access his or her files by name rather than by numeric identifier
Indexed Pile Sequential Sequential
Logical I/O
Basic I/O Supervisor
Figure 12.1 File System Software Architecture
Basic File System
Disk Device Driver Tape Device Driver
Indexed Hashed
User Program
Directory management
Access method (^) Blocking Disk scheduling
File allocation
File Structure
Records
File management concerns
Operating system concerns
Physical blocks in main memory buffers
Physical blocks in secondary storage (disk)
User access control
User & program comands (^) Operation, File name
Free storage management
File manipulation functions
I/O
Five of the common file organizations are:
The pile
The sequential file
The indexed indexed fileThe^ sequential file
The direct, or hashed, file
(a) Pile File
(c) Indexed Sequential File
(d) Indexed File
Figure 12.3 Common File Organizations
Variable-length recordsVariable set of fields Chronological order (b) Sequential File
Fixed-length recordsFixed set of fields in fixed order Sequential order based on key field
Main File
OverflowFile
Indexlevels
Exhaustiveindex Exhaustiveindex Partialindex
(variable-length records)Primary File
Index 12
n
The Sequential
File
(a) Pile File as disk
(b) Sequential File
Indexed
Sequential File
Adds an index to the file to support random access
Adds an overflow file
Greatly reduces the time required to access a single record
Multiple levels of indexing can be used to provide greater efficiency in access
(a) Pile File
(c) Indexed Sequential File
Main File
Overflow File
Index levels Index
1
2
n