Overview
Syllabus
Intro
Cooperating processes
Producer Consumer Problem A producer process produces information that is consumed by a consumer process.
counter is incremented every time we add a new item to the buffer counter++ counter is decremented every time we remove one item from the butter counter
Suppose that the value of the variable counter is currently 5. The producer and consumer processes execute the statements "counter" and counter concurrently Following the execution of these two statements, the value of the variable counter
Taught by
Neso Academy