Professional Documents
Culture Documents
Lyk - FCFS SJF Reviewer
Lyk - FCFS SJF Reviewer
3. Shortest Remaining Time First (SRTF) Burst Time / Execution Time – time required by the
process to complete execution (also called : running
4. Round Robin Scheduling (RR)
time)
5. Priority Scheduling (Prio)
Arrival Time – when a process enters in a ready state
6. Preemptive Priority Scheduling (P-Prio)
Finish Time – when process complete and exit from a
7. Multi-level Queue Scheduling (MLQ) system.
Preemptive Scheduling – Tasks are assigned with User –kind of program HAVING user interaction
priorities
Process – reference used for BOTH job and user
Non-Preemptive Scheduling – CPU is allocated to a
CPU/IO burst cycle – characterizes process execution;
specific process which will release the CPU either by
alternates between CPU and I/O activity.
switching context or terminating.
CPU Utilization – the main task in which the OS makes
sure the CPU remains busy as possible. It can range
6 TYPES OF PROCESS SCHEDULING ALGORITHMS from 0 to 100 percent. For RTOS: range 40 percent for
low-level and 90 to high-level system.
1. First Come First Serve (FCFS)
Throughput – the number of processes that finish their
2. Shortest Job First (SJF) execution per unit of time
3. Shortest Remaining Time Waiting time – the amount of time a specific process
4. Priority Scheduling (Prio) needs to wait in the ready queue.
5. Round Robin Scheduling (RR) - Total time the process has to wait before its
execution begins.difference between turnaround time
7. Multi-level Queue Scheduling (MLQ) and burst time of the process.
1. A process switches from the running to the waiting Turnaround time – Time taken to complete after
state arrival.; amount of time to execute a specific process;
First Come First Serve – easiest and most simple CPU 1. Completion Time: Time at which process completes
scheduling algorithm its execution.
Convoy effect – situation when short jobs have to wait 2. Turn Around Time: Time Difference between
for long jobs to finish. completion time and arrival time.
Average Waiting Time – crucial parameter to judge Turn Around Time = Completion Time – Arrival Time
scheduling algorithm’s performance
3. Waiting Time(W.T): Time Difference between turn
Completion time – time taken for execution to around time and burst time.
complete starting from arrival time
Waiting Time = Turn Around Time – Burst Time
CALCULATION:
FCFS
Advantages:
- Very Simple
Disadvantages:
Types:
2. Preemptive SJF