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

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004