The operating system just makes sure that no two flock()s are succeeding on the same file at the same time. Once one flock() succeeds, another flock() on the same file will block (unless nonblocking is selected) until the first one gets released.
"Locking" is actually a mutual agreement, not a draconic measure one party can impose.
In reply to Re: How do I lock a file in perl?
by saintmike
in thread How do I lock a file in perl?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |