i don`t understand behavior of tryLock()
Acquires the read lock only if the write lock is not held by another thread at the time of invocation.
i start thread`s that will get read lock, pause it for main
thread can get write lock.
than after getting write lock i make pause main threads for threads have chance get it read lock - and they did it.
when i
test same with lock() - it work as i expected, but this time i see that tryLock get lock even if i had already acquired write lock.
What is problem???