home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3653 < prev    next >
Encoding:
Text File  |  1992-08-19  |  970 b   |  39 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!gene.fwi.uva.nl!stolk
  3. From: stolk@fwi.uva.nl (Bram)
  4. Subject: flock() network behaviour
  5. Message-ID: <1992Aug20.114112.12756@fwi.uva.nl>
  6. Sender: news@fwi.uva.nl
  7. Nntp-Posting-Host: ollie.fwi.uva.nl
  8. Organization: FWI, University of Amsterdam
  9. Date: Thu, 20 Aug 1992 11:41:12 GMT
  10. Lines: 27
  11.  
  12. Hi,
  13.  
  14.  
  15. I am using flock() to prevent simultanous fileupdate by several
  16. processes.
  17.  
  18. However, these processes run on different machines, which do
  19. share a common filesystem though....
  20.  
  21. Will the fact that the processes run on different machines mess
  22. up the behaviour of flock?
  23.  
  24. I am asking this, because my code seems to screw up every
  25. now and then. Inconsistancies occur.
  26. Is flock 100% safe, or is the test+lock non-atomic, so that
  27. very high frequency locking will mess up if prolongued long
  28. enough?
  29.  
  30. Any UNIX Guru on the net who can help me out here?
  31.  
  32.         Thanks in advance,
  33.  
  34.  
  35.                 Bram Stolk
  36.                 (stolk@fwi.uva.nl)
  37.  
  38.  
  39.