17.11.2014 Views

Chapter 6: Process Synchronization - Csl Mtu

Chapter 6: Process Synchronization - Csl Mtu

Chapter 6: Process Synchronization - Csl Mtu

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Critical Section Protocol<br />

do {<br />

entry section<br />

critical section<br />

exit section<br />

A critical section protocol<br />

consists of two parts: an<br />

entry section and an exit<br />

section.<br />

Between them is the<br />

critical section that must<br />

run in a mutually<br />

exclusive way.<br />

} while (1);<br />

9

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

Saved successfully!

Ooh no, something went wrong!