Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Atomic operation

by ikegami (Pope)
on Jul 20, 2009 at 17:56 UTC ( #781705=note: print w/replies, xml ) Need Help??

in reply to Re: Atomic operation
in thread Atomic operation

Works fine in Windows too.

Replies are listed 'Best First'.
Re^3: Atomic operation
by tilly (Archbishop) on Jul 20, 2009 at 18:29 UTC
    I believe the semantics on Windows differ slightly from *nix. (On Unix locks are advisory, on Windows they are mandatory.) Also the semantics on *nix vary based on the filesystem. (NFS is different than remote Windows is different from local filesystem.)

    Which underscores the importance of having a unit test.

      on Windows they are mandatory

      hum, I was sure Windows had both kinds, but I can't find anything on advisory locks.

      flock creates mandatory locks on Windows. I did not know that.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2020-05-30 06:41 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (171 votes). Check out past polls.