Question
A file is stored on a LOOK scheduled disk system. The disk is 1 MB in size and has disk blocks of size 1 KB.
A file is stored on a LOOK scheduled disk system. The disk is 1 MB in size and has disk blocks of size 1 KB. The file is stored in sequential order in 4 disk blocks: 20, 500, 10, and 900. The last disk access was to block 51 and the directory entry for the file is stored in block 50. The first disk block is numbered block 0. A single block disk cache is present.
a. Suppose a linked disk allocation method is used. What is the total seek distance for reading the entire file from beginning to end?
b. Suppose a FAT allocation method is used in which the FAT is stored at the beginning of the disk and each FAT entry is 2 bytes. What is the total seek distance for appending and storing data in disk block 600 at the end of the file?
c. If a C-SCAN disk scheduler is used in part b, what is the total seek distance?
d. Suppose an indexed disk allocation method is used and the index block contains 1 byte direct entries. If the index is stored in block 55, what is the total seek distance for reading the entire file from beginning to end?
e. Suppose an indexed disk allocation method is used and the index block contains 1 byte direct entries. If the disk contains 100 files, what is the maximum size file possible (in bytes)?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started