What Does File Locking Mean?

File locking is a data management feature that restricts other users from changing a specific file. This allows only one user or process access to this file at any given time. This is to prevent the problem of interceding updates on the same files.

Techopedia Explains File Locking

For example, if process A and process B open the same file, process A then changes the file and saves it. Process B, which still has the original state file, makes some changes then saves it, rendering the changes made by process A lost.