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 />

– Semaphores<br />

» In the solution to the producer-consumer problem<br />

we used semaphores for two distinct purposes<br />

» mutual exclusion (mutex)<br />

» synchronization (empty and full)<br />

guarantee certain event sequences do (or do not) occur<br />

– producer stops when buffer is full<br />

– consumer stops when buffer is empty<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!