Hello,
I have read the man pages for flock, lockf, and fcntl. I have used flock will no problems but am curios about the other methods. The locks I use are for entire files.
Which is the better method any why?
Thank you in advance.
Printable View
Hello,
I have read the man pages for flock, lockf, and fcntl. I have used flock will no problems but am curios about the other methods. The locks I use are for entire files.
Which is the better method any why?
Thank you in advance.
I don't know if this answers your question completely or not but I figured seeing as no one has yet gotten around to you I'd give it a shot...
http://www.landfield.com/isn/mail-ar.../Jun/0075.html
Hello,
This does help some. Thank you. But what I am really seeking are the pros and cons of each based on pratical programming experience.
If you are only wanting to lock a whole file, then just keep using flock. Only bother with the other functions if you really need that sort of power. If you want to use one of the other methods, just make sure your calculations are correct.
ac
Hello,
I have considered wheather locking sections would be more advantagous. However; I haven't been able to find enough information on a comparative analysis of each in regards to the pros/cons of each. Particularly, networking seems to be very hazy and conflicting on each.
Thank you in advance.