About
A File lock is a lock on a file
They are acquired from the operating system kernel file system.
All open files have acquired a lock.
Implementation
Their implementation is OS depend. They are generally just flags.
They are stored in primary memory, not on disk. They will instantly disappear:
- in case of failure such as:
- operating system crashes
- or power loss.
- or process exit.