execution: FAILED main: write lock main: create writer1, with priority: 2 writer1: attempt write lock main: create reader, with priority: 2 reader: attempt read lock main: create writer2, with priority: 0 writer2: attempt write lock main: release write lock writer1: acquired write lock writer1: unlock write lock writer2: acquired writer lock Test failed: reader did not get the lock when writer1 release the lock