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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Operating system scheduling (single CPU)<br />

• Only one process can execute at a time on a single processor system<br />

◾ A process is typically executed until it is required to wait for some event<br />

• e.g. I/O, timer, resource<br />

◾ When a process’ execution is stalled, we want to maximise CPU utilization by executing another process on<br />

the CPU<br />

• CPU I/O burst cycle<br />

◾ Processes alternate between bursts of CPU and I/O activity<br />

◾ CPU burst times have an exponential frequency curve with many short bursts and very few long bursts<br />

• CPU scheduler<br />

◾ When the CPU becomes idle, the operating system must select another process to execute<br />

◾ This is the role of the short-term scheduler or CPU scheduler<br />

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