execution: PASS main: attempt read lock main: acquired read lock main: create thread1 thread: attempt pthread_rwlock_trywrlock() thread: correctly got EBUSY main: unlock read lock main: attempt pthread_rwlock_trywrlock() main: acquired write lock main: create thread2 thread: attempt pthread_rwlock_trywrlock() thread: correctly got EBUSY main: unlock write lock Test PASSED