





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























1
2
What happens when the I/O burst occurs?
What is the process state at that time?
In general, most programs have short CPU bursts
Cases 1 & 2: Non-preemptive scheduling
Cases 3 & 4: Preemptive scheduling (also includes case 1 & 2) Docsity.com
When do Batch, Multiprogramming &
Multitasking System do Scheduling?
Batch
Multiprogramming Multi-tasking or time-sharing
7
8
CPU burst times (^) E.g., time units are milliseconds
10
11
13
14
E.g., base on duration of last CPU burst and a number summarizing duration of prior CPU bursts
τn+1 = α * tn + (1 - α) * τn
Where: t (^) n is the actual duration of n th CPU burst value for the process, α is a constant indicating how much to base estimate on last CPU burst, and τn is the estimate of CPU burst duration for time n
16
Time Complexity of SJF with
estimation method?
CPU burst must be kept at the beginning of the ‘queue’
O(lg n) where n is queue length
17
19
20