Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: File locking and Storable

by Aragorn (Curate)
on Apr 04, 2004 at 10:03 UTC ( [id://342446]=note: print w/replies, xml ) Need Help??


in reply to File locking and Storable

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://342446]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found