Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Temporary usage of RAM memory

by fullermd (Priest)
on Apr 11, 2014 at 05:16 UTC ( #1081909=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Temporary usage of RAM memory
in thread Temporary usage of RAM memory

Only one of the racing processes can win the rename, so you have to check it for failure and re-try the readdir/rename loop. So you don't need locking, but you do need checking and retrying.


Comment on Re^3: Temporary usage of RAM memory
Replies are listed 'Best First'.
Re^4: Temporary usage of RAM memory
by davido (Archbishop) on Apr 11, 2014 at 06:18 UTC

    Thanks, that makes sense. :)


    Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (15)
As of 2015-07-30 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls