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.

Fragment of a scenario…<br />

Process p Process q wantp wantq<br />

p3: while wantq q3: while wantp TRUE TRUE<br />

p3: while wantq q4: wantq ← false TRUE TRUE<br />

p4: wantp ← false q4: wantq ← false TRUE TRUE<br />

p4: wantp ← false q5: wantq ←true TRUE FALSE<br />

p5: wantp ← true q5: wantq ←true FALSE FALSE<br />

p5: wantp ← true q3: while wantp TRUE FALSE<br />

p3: while wantq q3: while wantp TRUE TRUE<br />

…<br />

Here is the possibility of an endless loop.<br />

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