30.10.2014 Views

Operating Systems - David Vernon

Operating Systems - David Vernon

Operating Systems - David Vernon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Processes<br />

InterProcess Communication IPC<br />

– Mutual Exclusion with Busy Waiting<br />

» Technique 5: TSL<br />

» hardware-based solution<br />

» uses a special instruction: Test and Set Lock TSL<br />

reads contents of memory word into a register<br />

stores a non-zero value at that memory location<br />

» since interrupts only occur at the end of an<br />

instruction cycle, TSL is ‘atomic’ and can’t be<br />

interrupted<br />

» TLS locks the memory bus: other CPUs can’t<br />

access that location until the operation is complete<br />

Copyright © 2007 <strong>David</strong> <strong>Vernon</strong> (www.vernon.eu)

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

Saved successfully!

Ooh no, something went wrong!