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.

Unsafe Interaction Example<br />

Thread 1 Thread 2 G<br />

L=G<br />

(4)<br />

L=L+10<br />

(14)<br />

– 4<br />

– 4<br />

G=L<br />

L=G<br />

(4)<br />

L++<br />

(5)<br />

4<br />

14<br />

G=L 5<br />

G = Global Variable; L = Separate Local Variables<br />

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