Why is there an exclusive lock *count* ???

John F Carr jfc at athena.mit.edu
Wed Feb 1 10:23:56 AEST 1989


In article <3775 at ttidca.TTI.COM> mb at ttidca.tti.com (Michael Bloom) writes:
>Why bother to do this? Isn't the IEXLOCK flag bit sufficient since there
>can only be one exclusive lock at any one time? 

If a process forks while holding an exclusive lock, the number of locks
increases by one (the lock remains until both parent and child have
released it).

--
   John Carr             "When they turn the pages of history,
   jfc at Athena.mit.edu     When these days have passed long ago,
   bloom-beacon!          Will they read of us with sadness
   athena.mit.edu!jfc     For the seeds that we let grow?"  --Neil Peart



More information about the Comp.unix.wizards mailing list