DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Threads

Reader-writer locks

Whereas the locks for mutual exclusion allow only one thread to use a resource at a time, the reader-writer facility supports a more complicated model of resource use. This facility allows for mutual exclusion of a resource for certain operations (typically, write operations); for other operations (typically, read operations) simultaneous access to the resource need not be denied to multiple threads.

Such locks can be held in either ``read mode'' (a read lock) or ``write mode'' (a write lock).


Next topic: Semaphores
Previous topic: Recursive mutual exclusion

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005