When I use lock(){...}, I cannot garantee which thread will enter the lock first.
What about ReaderWriterLock? Does it works like a FIFO for the writers or not?
When I use lock(){...}, I cannot garantee which thread will enter the lock first.
What about ReaderWriterLock? Does it works like a FIFO for the writers or not?