File resource allocation: Overview
When a high-level language program uses a file, several operations require that the system allocate the resources that are needed to perform that operation.
The system generally uses file resource allocation to ensure that multiple users do not use the file in conflicting ways. For example, the system will not allow you to delete a file while any application program is using it. The system does this by obtaining a lock on the file when it opens. The delete file operation also attempts to get a lock on the file and is unsuccessful because the program using the file still has the lock from when the file was opened, and the locks conflict.
Parent topic:
File resources allocation