Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: The necessity of flock-ing files that are only to be read.

by adrianh (Chancellor)
on Sep 04, 2002 at 13:06 UTC ( #195064=note: print w/ replies, xml ) Need Help??


in reply to The necessity of flock-ing files that are only to be read.

Just one quick comment.

While it is implicit in Joost's comment it's worth saying that flock() based locks are co-operative - they're only effective for those programs that choose to use flock().

While having shared locks is a good thing if all the processes accessing the file are using flock() based locking, it will be of no use at all if there is some other process that just writes to the file without getting an exclusive lock first.

Just thought it was worth making explicit :-)


Comment on Re: The necessity of flock-ing files that are only to be read.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2015-08-04 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (75 votes), past polls