Runs fn while holding a lock file, so writers take turns. A lock left by a process that has exited is taken over. Waiting longer than the timeout throws an error naming the process that holds the lock.
fn
Runs
fnwhile holding a lock file, so writers take turns. A lock left by a process that has exited is taken over. Waiting longer than the timeout throws an error naming the process that holds the lock.