-
-
-
CENAPAD-MGCO
A seguir: Buffer: Uma computação
Acima: O Buffer Compartilhado
Anterior: Buffer: Estados e Estado
| Com | Guarda | Ação |
| consumerState = thinking | consumerState = hungry; | |
| consumerState = hungry |
consumption = buffer.head(); buffer = buffer.tail(); n = n - 1; consumerState = thinking; | |
| producerState = thinking | producerState = hungry; product = randomChar(); | |
| producerState = hungry |
buffer.append(product); n = n + 1; producerState = thinking; |