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

Create successful ePaper yourself

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

Scheduling algorithms<br />

• Shortest-Job-First [preemptive or non-preemptive]<br />

◾ To see how the value for τn+1 is calculated based on past history, we can expand the formula, substituting for τn<br />

τn+1 = αtn + (1- α) αtn-1 + … + (1- α) j αtn-j + … + (1- α) n+1 τ0<br />

α is typically given the value 0.5<br />

◾ SJF can be either preemptive or non-preemptive<br />

• Preemptive SJF will preempt the currently executing process if a process joins the ready queue with a smaller next CPU<br />

burst time<br />

• Non-preemptive SJF scheduling will allow the currently executing process to complete its CPU burst before scheduling<br />

the next process<br />

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