execution: FAILED main: has priority: 2 main: attempt read lock main: acquired read lock main: create wr_thread, with priority: 1 wr_thread: attempt write lock main: create rd_thread, with priority: 0 rd_thread: attempt read lock rd_thread: acquired read lock rd_thread: unlock read lock Test FAILED: rd_thread did not block on read lock, when a reader owns the lock, and a higher priority writer is waiting for the lock