-APUE-:
fig11.10, using a mutex to protect a data structure.
fig11.11, using two mutexes.
fig11.12, simplified locking.
fig11.13, using readerwriter locks.
extra, use gettimeofday to obtain the absolute time for a timeout value.
fig11.14, using contion variables.