vault backup: 2025-03-12 12:14:27
This commit is contained in:
parent
d03fc2668a
commit
5dffa6402e
1 changed files with 2 additions and 2 deletions
|
@ -158,9 +158,9 @@ okay, so the difference seems to be just the fact that there are no while loops
|
||||||
Let's imagine to have quick producers and a slow consumer:
|
Let's imagine to have quick producers and a slow consumer:
|
||||||
producer A:
|
producer A:
|
||||||
- writes at BUF[0], so IN becomes 1
|
- writes at BUF[0], so IN becomes 1
|
||||||
|
|
||||||
producer B:
|
|
||||||
- writes at BUF[1], so IN becomes 2
|
- writes at BUF[1], so IN becomes 2
|
||||||
|
- ...
|
||||||
|
- writes at BUF[n], so IN becomes 0
|
||||||
|
|
||||||
consumer A:
|
consumer A:
|
||||||
- starts reading BUF[0], now OUT is 1
|
- starts reading BUF[0], now OUT is 1
|
||||||
|
|
Loading…
Reference in a new issue