execution: PASS main: attempt pthread_rwlock_tryrdlock main: acquired read lock main: create rd_thread1 rd_thread1: attempt pthread_rwlock_tryrdlock rd_thread1: acquired read lock rd_thread1: unlock read lock main: unlock read lock main: attempt write lock main: acquired write lock main: create rd_thread2 rd_thread2: attempt pthread_rwlock_tryrdlock rd_thread2: Correctly got EBUSY main: unlock write lock Test PASSED