Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
0 : File Management
Learning Outcomes
4.0 Understand File Management in Operating System 4.1 Describe three type of file structure / directory structure a. Single - Level Directory b. Two level directory c. Tree structured directory 4.2 Various method of storing files a. Contiguous allocation b. Link list allocation (disk blocks) c. Link list allocation using index (table in main memory)
File Management
Is software responsible for creating, deleting, modifying and controlling access to files(as well as for managing the resources used by files)
Naming problem
Path name Can have the same file name for different user Efficient searching No grouping capability
11
(ii) Link List Noncontiguous Allocation (iii)Link List Using Index/Index node Allocation
Each file consists of a list of disk blocks that linked : the disk block may be scattered anywhere on the disk The directory contains a pointer to the first and last block of the file Each block contains pointer to the next block .
Method of Storing File : (ii) Link- List Noncontigous Allocation cont Advantages Solves problem of contiguous allocation,
No external fragmentation Size declaration problem (the size of a file does not need to be declared when the file is created) Simply to create a new file by implementation of free- space management system
10
16
25
1 A file of 5 blocks might start at block 9, continue at block 16, then block 1, block 10 and finally block 25.
Method of Storing File : (iii) Link List Using Index/Index Node Allocation
Bringing all pointers together into one location Each file has its own index block
Method of Storing File : (iii) Link List Using Index/Index Node Allocation cont
Method of Storing File : (iii) Link List Using Index/Index Node Allocation cont