vault backup: 2025-03-12 12:24:27

This commit is contained in:
Marco Realacci 2025-03-12 12:24:27 +01:00
parent a6939cfeb2
commit a88fc10c02

View file

@ -181,10 +181,9 @@ producer A:
- but wait! Consumer B is still reading there - but wait! Consumer B is still reading there
- **Producer A doesn't give a fuck.** - **Producer A doesn't give a fuck.**
![[Pasted image 20250312121828.png|200]] ![[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 #### The Readers/Writers problem
- Several processes want to access a file - Several processes want to access a file
- Readers may simultaneously access the file - Readers may simultaneously access the file