wikipedia File locking
File locking is a mechanism that restricts access to a computer file by allowing only one user or process to access it in a specific time.
Most operating systems support the concept of record locking, which means that individual records within any given file may be locked, thereby increasing the number of concurrent update processes.