ead-write lock allows multiple threads to acquire a read lock provided no other thread currently has a write lock on the same object. A thread can acquire a write lock if no other thread owns either a read lock or a write lock.
Solaris thread library enables extra error checking when environmental variable _THREAD_ERROR_DETECTION is set to 1 or 2.