vault backup: 2022-10-30 14:25:53

This commit is contained in:
Jet Hughes 2022-10-30 14:25:53 +13:00
parent 9fde17e5bb
commit 555c2e1e61
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,27 @@
---
title: "20-sync-deadlock"
aliases:
tags:
- cosc204
- lecture
---
# Bounded buffer problem
![slide|400](https://i.imgur.com/tdAllKY.png)
producer consumer problem
issues
- no data in buffe: consumer has nothing to consume
- buffer is full: no space for producer to produce
private vars
- in: next pos in buf to be writted
- out: next pos in buf to be read
shared variables
- buffer
- counter: number of items in buffer
waiting
- busy"

View File

@ -49,7 +49,9 @@ tags:
- [16-device-drivers](notes/16-device-drivers.md)
- [17-processes-communication](notes/17-processes-communication.md)
- [18-processes-sharing-and-threads](notes/18-processes-sharing-and-threads.md)
-
- [19-cpu-scheduling](notes/19-cpu-scheduling.md)
# Archive
# Info