Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.41K
hi i want some change in this code. let one writer, one reader at the same time. Writer has preference. package test; import java.util.concurrent.Semaphore; class ReaderWritersProblem { static Semaphore readLock = new Semaphore(1); static Semaphore writeLock = new Semaphore(1); volatile static int readCount = 0; static class Read implements Runnable … |