30.10.2014 Views

Operating Systems - David Vernon

Operating Systems - David Vernon

Operating Systems - David Vernon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Processes<br />

InterProcess Communication IPC<br />

– Sleep and Wakeup<br />

» The Producer-Consumer Problem<br />

» (also known as the bounded buffer problem)<br />

» Two processes share a fixed-size buffer<br />

producer process put information in<br />

consumer process takes information out<br />

» Problem for producer when buffer is full<br />

» Solution:<br />

producer goes to sleep<br />

and is awakened by consumer when consumer has<br />

removed some items<br />

Copyright © 2007 <strong>David</strong> <strong>Vernon</strong> (www.vernon.eu)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!