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.

CPU Scheduler<br />

• CPU scheduler (continued)<br />

◾ Candidate processes for scheduling are those processes that are in memory and a ready to execute<br />

◾ Candidate processes are stored on the ready queue<br />

◾ The ready queue is not necessarily a FIFO queue, but depends on the implementation of the scheduler<br />

• FIFO queue, priority queue, unordered list, …<br />

• Scheduling may be performed in any of these situations<br />

1. When a process leaves the running state and enters the waiting state, waiting for an event (e.g. completion of<br />

an I/O operation)<br />

2. [PREEMPTIVE] When a process leaves the running state and enters the ready state ( e.g. when an interrupt<br />

occurs)<br />

3. [PREEMPTIVE] When a process leaves the waiting state and enters the ready state<br />

4. When a process terminates<br />

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