diff --git a/Concurrent Systems/test/Untitled.md b/Concurrent Systems/test/Untitled.md index 4e8f12f..c72aa51 100644 --- a/Concurrent Systems/test/Untitled.md +++ b/Concurrent Systems/test/Untitled.md @@ -37,12 +37,12 @@ end_write() := ``` monitor RW_READERS := - AR, WR, AW, WW init at 0 - condition CR, CW, CR_PR + AR, WR, AW, WW, R_batch init at 0 + condition CR, CW operation begin_read() := WR++ - if AW != 0 then + if (WW || AW != 0 then CR.wait() CR.signal() AR++