A read-write lock question.


R. Clayton (rclayton@monmouth.edu)
(no date)


  If the lock passed in with a read or write system call is unlocked should the
  os latch it? Or should the os just execute the system call with the lock
  unlatched?

The os should only ever unlatch a read or write lock. If the lock is
unlatched, the os should leave it unlatched (whether or not you optimize your
code to avoid unlatching an already unlatched lock is up to you; I wouldn't
bother).



This archive was generated by hypermail 2.0b3 on Mon Dec 16 2002 - 22:00:05 EST