The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: Mutex in Perl
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-12-2007
superuser84 superuser84 is offline
Registered User
 

Join Date: Nov 2007
Posts: 22
Thumbs up

To Porter:
I just realized that I also have to lock the file while reading as well to prevent write while reading...Thanks

To Smiling Dragon:
Thanks a lot for the pointer...I tried the sample program and thats exactly what I was looking for

Btw, where is the information that the file is locked stored ? How does another process (still using flock) know that a file is locked and has to sleep till unlocked ?

Thanks in advance.
J.
Reply With Quote