Mandatory lock
A file-access mechanism where the kernel enforces locks without process cooperation, but it is dangerous and discouraged in modern Unix systems.
Mandatory locks are the opposite of advisory locks—the kernel denies reads and writes to unlocked processes, not just uncooperative ones. Very powerful but also very fragile; bugs in the lock logic can deadlock all processes. The Linux kernel marks them deprecated; older systems like NFS that rely on them are notoriously fragile. Most modern projects avoid them entirely and instead use advisory locks (flock, fcntl) with application-level cooperation, which is safer and more transparent.