Convoy Effect
if processes with higher burst time arrived before the processes with smaller burst time , then , smaller processes have to wait for a long time for longer processes to release the CPU
Turn Around time = Completion time - Arrival time == duration of process to arrival to completion
Waiting time = TurnAround time - Burst time
Useful time = Total time - Wasted time
Efficiency = Useful time / Total time
delta means times to take actually dispatch the process to CPU in this case one milliseconds delay
Shortest Job first
shortest length of the process's next CPU burst.
if same FCFS is used.
can be preemptive or nonpreemptive , preemptive == Shortest Remaining Time First Scheduling.
But it is hard to know next CPU burst time so we do lots of approximation to predict.
Waiting time = Total waiting time - no.of milliseconds process executed - arrival time
Priority Scheduling
A priority is associated with each process , and the CPU is allocated to the process with the highest priority.
preemptive or nonpreemptive
preemptive = if higher priority process comes than this process will occupy CPU.
nonpreemptive = if higher priority process comes than it will the first at the ready queue.
might cause indefinite blocking or starvation = to solve if low priority process get old it's priority should be slowly increase
this case is preemptive.
non preemptive
'Operating System > O.S(Neso Academy, HPC Lab. KOREATECH)' 카테고리의 다른 글
HPC Lab) Deadlock (0) | 2021.05.19 |
---|---|
HPC Lab) Semaphore + event count , Monitor (0) | 2021.05.18 |
11)Preemptive Scheduling , Scheduling Criteria , FCFS(First-Come, First-Served) Scheduling (0) | 2021.05.11 |
10)Threading issue (fork , cancellation) , CPU and I/O burst cycles (0) | 2021.05.10 |
9)Threads , Hyper-threading , fork() and exec() System call (0) | 2021.05.09 |