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.

Scheduling algorithms<br />

• Round-Robin Scheduling<br />

◾ First-Come, First-Served with preemption<br />

◾ Define a time quantum or time slice, T<br />

◾ Every T seconds, preempt the currently executing process, place it at the tail of the ready queue and schedule<br />

the process at the head of the ready queue<br />

◾ New processes are still added to the tail of the ready queue when they are created<br />

◾ The currently executing process may relinquish the CPU before it is preempted (e.g. by performing I/O or<br />

waiting for some other event)<br />

• The next process at the head of the ready queue is scheduled and a new time quantum is started<br />

◾ For a system with n processes, there is an upper limit on the time before a process is given a time quantum on<br />

the CPU<br />

◾ (n – 1) q<br />

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