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.

From Thread U’s POV (1)<br />

• Acquire Mutex M<br />

◾This controls access to R,<br />

◾but also must control access to any shared variables that C<br />

depends on.<br />

• If C is true, continue – the mutex is available unfettered,<br />

◾i.e. if C is true, the mutex can be used as normal.<br />

• if C is false…<br />

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