01.06.2014 Views

Concurrent Systems II - Bad Request - Trinity College Dublin

Concurrent Systems II - Bad Request - Trinity College Dublin

Concurrent Systems II - Bad Request - Trinity College Dublin

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Second Attempt<br />

• Two processes, p and q, each with their own ‘want’ variables<br />

wantp and wantq.<br />

• If a process wants to enter its critical section, it ensures the<br />

other process’ want variable is false and then asserts its own<br />

while its entering, is in, and is leaving its critical region.<br />

108<br />

<strong>Trinity</strong> <strong>College</strong> <strong>Dublin</strong><br />

© Mike Brady 2007–2009

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

Saved successfully!

Ooh no, something went wrong!