Question: 3 a . [ Points 5 ] Suppose a file has been allocated 5 0 disk blocks ( numbered 0 . . 4 9 )
aPoints Suppose a file has been allocated disk blocks numbered If block is to be deleted, determine the number of readwrite operations on blocks assuming: i Contiguous allocation ii Linked allocation iii Indexed allocation where the index was already loaded in main memory
bPoints Consider a file currently consisting of blocks. Assume that the file control block and the index block, in the case of indexed allocation is already in memory. Calculate how many disk IO operations are required forcontiguous allocation strategy, to add a new block X Assume that there is no room to grow atthe beginning but there is room to grow at the end. Also assume thatthe block information to be added is stored in memory.
Block X is to be added at the beginning so it becomes the thblock of the file
Block X is to be added in the middle so it becomes the thblock of the file
Block X is added at the end so it becomes the thblock of the file
cPoints Consider a file currently consisting of blocks. Assume that the file control block and the index block, in the case of indexed allocation is already in memory. Calculate how many disk IO operations are required forlinked allocationstrategy to add a new block X Assume that there is no room to grow atthe beginning but there is room to grow at the end. Also assume thatthe block information to be added is stored in memory.
Block X is to be added at the beginning so it becomes the thblock of the file
Block X is to be added in the middle so it becomes the thblock of the file
Block X is added at the end so it becomes the thblock of the file
dPoints Answer the following questions relating to freespace management.
What is the advantage of managing the freespace list as a bitvector as opposed to a linked list?
Suppose a disk has K blocks, each block of Kbytes, how many blocks are needed for managing a bitvector?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
