[Prev] [Contents] [Next]
Read/write locks are recursive
The OS/400 implementation of read/write locks provides a recursive behavior not only for shared read locks (as the thread standard specifies), but for exclusive write locks as well. The following statements hold for read/write locks on OS/400.
- A thread can acquire any number of shared read locks on a read/write lock. Each successful shared read lock that is acquired must be released by a call to pthread_rwlock_unlock().
- A thread can acquire any number of exclusive write locks on a read/write lock. Each successful exclusive write lock that is acquired must be released by a call to pthread_rwlock_unlock().
[Prev] [Contents] [Next]
Copyright © 1998, IBM Corporation. All rights
reserved.
Comments? Contact rchthrds@us.ibm.com