Question: Q1. When a file is opened for reading the system must keep a read pointer to the location in the file where from the next

Q1. When a file is opened for reading the system must keep a read pointer to the location in the file where from the next read is to take place. Where is this pointer maintained (or stored) by the system?

Q2.

A file consists of 20 disk blocks (numbered O to 19). Assume that file control block and directory are already in the memory. A block is to be inserted in the middle of the file (as 10th block). How many disk read and how many disk write I/'O operations are needed if contiguous allocation scheme is used by the file system ?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!