CPU Non-Preemptive
Scheduling
Member
 Mahmudullah 151-15-5073
 M. Munem Mostaqem 151-15-4873
 Md. Fardin Hassan 152-15-5532
 Mehedi Hasan Ratul 152-15-5711
 Md Jahid Hasan 152-15-5787
 Mohammad Shakhawat Hossain 151-15-4727
Definition
• Preemptive Scheduling.
- SRTF, Priority, Round Robin, etc.
 Non-preemptive Scheduling.
-FCFS, SJF, Priority, etc.
FCFS
Process:
 Non-preemptive scheduling algorithm.
 Follow first in first out (FIFO) method.
FCFS
Example 1: (Without Arrival time)
FCFS
TotalWaitTime=
AverageWaitingTime =
TotalTurn AroundTime=
AverageTurn Around time =
FCFS
Example 2: ( with ArrivalTime)
FCFS
TotalWaitTime=
AverageWaitingTime =
TotalTurn AroundTime=
AverageTurn Around time =
SJF
Process:
 once CPU given to the process it cannot be preempted until
completes its CPU burst
 Ready queue is treated as a priority queue based on smallest CPU
time requirement.
SJF
Example 1: (Without arrival time)
SJF
TotalWaitTime
6 + 0 + 3 = 9 ms
AverageWaitingTime = (TotalWaitTime) / (Total number of
processes)
9/3 = 3 ms
TotalTurn AroundTime
30 + 3 + 6 = 39 ms
AverageTurn Around time = (TotalTurn AroundTime) / (Total
number of processes)
39 / 3 = 13 ms
SJF
Example 2: (With ArrivalTime)
SJF
TotalWaitTime= 0 + 7 + 15 + 9 = 31 ms
AverageWaitingTime = 31/4 = 7.75 ms
TotalTurn AroundTime = 8+11+ 14+24= 57
AverageTurn Around time = 57/4 = 14.25 ms
Priority
Process:
 Each process is assigned a priority. Process with highest priority is
to be executed first and so on.
 Processes with same priority are executed on first come first
served basis.
Priority
Example: (With Arrival time)
Gantt chart
Priority
Average Wait Time : (9+5+12+0) / 4 = 6.5
Priority
Gantt chart:
Example 2: (without Arrival time)
Priority
Question?
THANKYOU!

CPU Non-Preemptive Scheduling