CSE 120 Lecture Notes - Lecture 7: Yottabyte
Document Summary
Note: the programmer is not worried about over-producing things. A kernel could block or not schedule a producer to run! With flow control - controlling the flow of data. Producer: - i need to receive a ready message by the consumer so i can start producing! Then, a producer can produce up to n message. The consumer consumes the item, and sends a ready message to the producer. Send the ready message first before consuming the item. Add ports : ( mailbox ) - send the item to an address for which the consumer then picks up the item. Indicator - i am willing to take anything from anybody: kernel buffering: outstanding messages (messages produced, but not received) For example, give every process a fixed , pre-allocated amount of memory. If a process uses up all that memory, then block it!