Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ID: 0 has arrived at time 0 (writer)
- thread id: 0 has begun writing [WAITING WRITERS: 1]
- ID: 1 has arrived at time 2 (writer)
- thread id: 0 has finished writing [WAITING WRITERS: 1]
- ID: 2 has arrived at time 3 (reader)
- thread id: 1 has begun writing [WAITING WRITERS: 1]
- ID: 3 has arrived at time 4 (writer)
- thread id: 1 has finished writing [WAITING WRITERS: 1]
- ID: 4 has arrived at time 6 (reader)
- thread id: 2 has begun reading [WAITING READERS: 1]
- ID: 5 has arrived at time 7 (reader)
- thread id: 2 has finished reading [WAITING READERS: 2]
- ID: 6 has arrived at time 9 (writer)
- thread id: 3 has begun writing [WAITING WRITERS: 1]
- ID: 7 has arrived at time 12 (writer)
- thread id: 3 has finished writing [WAITING WRITERS: 1]
- thread id: 4 has begun reading [WAITING READERS: 2]
- ID: 8 has arrived at time 14 (reader)
- thread id: 4 has finished reading [WAITING READERS: 2]
- thread id: 5 has begun reading [WAITING READERS: 2]
- ID: 9 has arrived at time 17 (reader)
- thread id: 5 has finished reading [WAITING READERS: 2]
- thread id: 6 has begun writing [WAITING WRITERS: 2]
- ID: 10 has arrived at time 18 (writer)
- ID: 11 has arrived at time 20 (reader)
- thread id: 6 has finished writing [WAITING WRITERS: 2]
- thread id: 7 has begun writing [WAITING WRITERS: 2]
- ID: 12 has arrived at time 23 (reader)
- thread id: 7 has finished writing [WAITING WRITERS: 1]
- thread id: 8 has begun reading [WAITING READERS: 4]
- ID: 13 has arrived at time 25 (writer)
- ID: 14 has arrived at time 26 (reader)
- thread id: 8 has finished reading [WAITING READERS: 4]
- thread id: 9 has begun reading [WAITING READERS: 4]
- thread id: 9 has finished reading [WAITING READERS: 3]
- thread id: 10 has begun writing [WAITING WRITERS: 2]
- thread id: 10 has finished writing [WAITING WRITERS: 1]
- thread id: 11 has begun reading [WAITING READERS: 3]
- thread id: 11 has finished reading [WAITING READERS: 2]
- thread id: 12 has begun reading [WAITING READERS: 2]
- thread id: 12 has finished reading [WAITING READERS: 1]
- thread id: 13 has begun writing [WAITING WRITERS: 1]
- thread id: 13 has finished writing [WAITING WRITERS: 0]
- thread id: 14 has begun reading [WAITING READERS: 1]
- thread id: 14 has finished reading [WAITING READERS: 0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement