Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: filesystems & Perl

by $h4X4_|=73}{ (Monk)
on Aug 12, 2016 at 22:12 UTC ( [id://1169676]=note: print w/replies, xml ) Need Help??


in reply to filesystems & Perl

Let's say you read the directory, but while you're reading, the next file gets erased.
This is called a Race Condition. You can make your own File Lock that stops files from being erased while reading the directory.

This one video comes to mind that can explain it better if you have time to view it...
YAPC::NA 2016 - Locking with Perl (...hard things should be possible)‎ - David Oswald

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found