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.

Attempt #3<br />

• Attempt #2 fails because of the ‘gap’ between finding out the<br />

other process is not attempting to get into its critical region and<br />

entering the critical region.<br />

◾(The other process could enter its critical region in the gap.)<br />

• So, attempt #3 works by claiming to enter the critical region<br />

before checking it’s okay by everyone else.<br />

◾i.e. Attempt #3 does assert wait before awaiting wait<br />

◾c.f. Attempt #2 does await wait before assert wait<br />

112<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!