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 1: Disabling interrupts<br />

Process scheduling only happens on clock<br />

or other interrupts<br />

So process might disable interrupts upon<br />

entering a critical region<br />

And re-enable them on exiting<br />

But it’s not a good idea to allow user<br />

processes the power to disable interrupts<br />

(what if they fail to re-enable them …)<br />

Also, Copyright won’t © 2007 work <strong>David</strong> <strong>Vernon</strong> in (www.vernon.eu) a multi-CPU system

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

Saved successfully!

Ooh no, something went wrong!