From a88fc10c023ce416193a217d38d2d0d1e088e156 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Wed, 12 Mar 2025 12:24:27 +0100 Subject: [PATCH] vault backup: 2025-03-12 12:24:27 --- Concurrent Systems/notes/4 - Semaphores.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Concurrent Systems/notes/4 - Semaphores.md b/Concurrent Systems/notes/4 - Semaphores.md index c0f826c..46ce51f 100644 --- a/Concurrent Systems/notes/4 - Semaphores.md +++ b/Concurrent Systems/notes/4 - Semaphores.md @@ -181,10 +181,9 @@ producer A: - but wait! Consumer B is still reading there - **Producer A doesn't give a fuck.** ![[Pasted image 20250312121828.png|200]] - *don't be like Producer A, be more like Bob* - - + *don't be like Producer A, be more like Bob, who always scans EMPTY before!* +So the issue here is that producers just assume that IN is the first available slot. But it its not necessarily the case. #### The Readers/Writers problem - Several processes want to access a file - Readers may simultaneously access the file