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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Condition Variables<br />

• A generalised synchronisation construct.<br />

•<br />

Allows you to acquire mutex lock when a condition relying on a<br />

shared variable is true and to sleep otherwise.<br />

• The ‘conditon variable’ is used to manage the mutex lock and the<br />

signalling.<br />

• Slightly tricky.<br />

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