11. Readers/writers problem(2)
31/10/22
Solution 3 - Writers 3
Give priority to writers and uses:
iReadCount
.iWriteCount
- to keep track of the number of readers/writerssRead/sWrite
to synchronise the readers/writers critical sectionsReadTry
to stop readers when there is a writers waitingsReasource
to synchronise the resource for reading/writing