Subversion Repositories HelenOS-doc

Compare Revisions

Ignore whitespace Rev 43 → Rev 44

/design/trunk/src/ch_synchronization.xml
256,10 → 256,10
and is used to synchronize writers. The writer's lock operation,
<emphasis>rwlock_write_lock_timeout</emphasis>, simply tries to acquire
the exclusive mutex. If it succeeds, the writer is granted the rwlock.
However, if the operation fails, the writer must check for potential
readers at the head of the list of sleeping threads associated with the
mutex's wait queue and proceed according to the procedure outlined
above.</para>
However, if the operation fails (e.g. times out), the writer must check
for potential readers at the head of the list of sleeping threads
associated with the mutex's wait queue and proceed according to the
procedure outlined above.</para>
 
<para>The exclusive mutex plays an important role in reader
synchronization as well. However, a reader doing the reader's lock