|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: (tye)Re: flock() broken under FreeBSD?by Anonymous Monk |
| on Jul 28, 2002 at 13:08 UTC ( #185837=note: print w/ replies, xml ) | Need Help?? |
|
What would you want to happen if 2 processes get read-only locks and then try to "upgrade" them at the same time to read-write? What reasonable semantics can you suggest for resolving this? If there is no reasonable way to implement upgrades, then it is not unreasonable to say, Silly programmer. Upgrades don't exist. If you will want to write, then you should tell me that from the start! Getting a shared lock is a promise that you won't be doing any modifications based on your read. Don't make that promise if it isn't true.
In Section
Meditations
|
|
||||||||||||||||||||||