An exclusive or write lock gives a process exclusive access for writing to the specified part of the file. ... A shared or read lock prohibits any other process from requesting a write lock on the specified part of the file. However, other processes can request read locks.