Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: File locking and Storableby Aragorn (Curate) |
on Apr 04, 2004 at 10:03 UTC ( [id://342446]=note: print w/replies, xml ) | Need Help?? |
File locking is a hairy subject, and there are many ways to get it wrong. An approach that works really well is called semaphore file locking. In this approach, you don't lock the actual data file, but a different one which acts as a sentinel for the actual data file.
Dominus has a few slides about this in his Perl Hardware Store talks. The relevant slides start here. Arjen
In Section
Seekers of Perl Wisdom
|
|