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.

Condition Variables (2)<br />

• Dramatis Personae:<br />

◾A mutex variable M,<br />

◾A shared resource R to be guarded by M,<br />

◾A condition variable V,<br />

◾A condition C,<br />

◾A thread U that wishes to use R, protected by M, on condition<br />

that C is true,<br />

◾A thread S that will modify V.<br />

59<br />

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

© Mike Brady 2007

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

Saved successfully!

Ooh no, something went wrong!