03.05.2013 Views

Concurrency en race condities

Concurrency en race condities

Concurrency en race condities

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Advance met Compare & Swap<br />

• Pseudo-assembler:<br />

Advance: mov reg1, counterValue<br />

again: mov reg2, reg1<br />

inc reg2<br />

cs reg2, reg1, counterValue<br />

bne again<br />

push reg1 // returnwaarde<br />

• Interrupts kunn<strong>en</strong> gewoon aan blijv<strong>en</strong><br />

• Mag door user-code word<strong>en</strong> uitgevoerd<br />

• Hoe zit het hier met prioriteit<strong>en</strong>?<br />

College OS 2010 – 2011 24

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

Saved successfully!

Ooh no, something went wrong!