Posts

Showing posts with the label types of allocation method

Contiguous Allocation Method

Image
Contiguous Allocation Method  FILE LOCKING: The file locking mechanism provides functionality similar to reader-write locks. A reader-write lock requires specifying the mode of the lock-in their read and write access. When a process wishes to only read shared data, it requests the reader-writer lock in reading mode. Similarly, when a process wishes to modify the shared data. it must request the lock in write mode. File locking enables processes to implement exclusive access to a file. There are three major options for the implementation of the file.  A file can be locked as a whole or only a part of the file can be locked. A file may be locked for reading writing, modifying appending, etc. Most of the system provides both read and write locks. If a file is locked by a process for reading, then other processes can only read data from the file but the process cannot write new data into it (i,e write access by other process is defined) Similarly, if a file is locked by a process ...