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.

Starvation Free?<br />

• Starvation Free: If any process is trying to enter its critical sections, it is<br />

certain that it will eventually succeed.<br />

• Proofs:<br />

◾In , both processes are in their combined non-critical and<br />

preprotocol sections.<br />

◾Say s is ready to enter its critical region: it can’t because turn = 1,<br />

and only r can set it to 2.<br />

• But r is in its non-critical region, where progress is not guaranteed.<br />

◾We can’t be certain turn will ever change to 2.<br />

◾Thus, we can’t guarantee starvation free operation. ✖<br />

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