Clark J. Wang schrieb:
> In C code I can use lockf(), flock(), semaphore and mutex for locking /
> unlocking. Can bash provide some similar mechanisms?
> 

For simple things, which don't need to be 1000% rocksolid, you can use
atomic operations like mkdir or noclobbered redirection for mutex purposes.

Accessing the file locking mechanisms of the kernel isn't possible so
far, but Bash has a plugin framework.

Jan


Reply via email to