From d03fc2668a60c00024ac0cb574f82b807ccdb492 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Wed, 12 Mar 2025 12:09:27 +0100 Subject: [PATCH] vault backup: 2025-03-12 12:09:27 --- Concurrent Systems/notes/4 - Semaphores.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Concurrent Systems/notes/4 - Semaphores.md b/Concurrent Systems/notes/4 - Semaphores.md index 6f30c0c..9c6e924 100644 --- a/Concurrent Systems/notes/4 - Semaphores.md +++ b/Concurrent Systems/notes/4 - Semaphores.md @@ -167,9 +167,13 @@ consumer A: consumer B: - finds OUT at 1 -- sets out at 2 and starts reading +- sets OUT at 2 and starts reading - finishes reading -- +- sets EMPTY[1] <- tt + +consumer A: +- finishes reading (finally) +- sets EMPTY[0] <- tt