From 57a24ed0b0d605cec928a87606f8f765031e9438 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Thu, 3 Apr 2025 00:55:03 +0200 Subject: [PATCH] vault backup: 2025-04-03 00:55:03 --- Concurrent Systems/test/Untitled.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++