06_Task_Performance_1(5)
06_Task_Performance_1(5)
06_Task_Performance_1(5)
Task Performance
Process Scheduling
Objectives:
▪ Analyze the different types of process scheduling for an operating system; and
▪ Test the efficiency of some scheduling algorithms by comparing the turnaround time and/or wait time of
the process.
Instructions:
Process E F G H I J K
Arrival Time 0 2 3 5 11 17 24
Bust Time 4 9 3 7 5 6 12
• First-Come First-Serve
o Calculate Finish Time: Start with the first process, add its burst time to get the finish time, and
then continue to the next process.
o Calculate Turnaround Time: For each process, subtract the arrival time from the finish time.
o Calculate Waiting Time: For each process, subtract its burst time from its turnaround time.
o Process Each in Quantum Slices: Deduct 3 from the remaining burst time each time a process gets the
CPU.
o If the remaining burst time of a process is less than the quantum, run it for the remaining time.
o Repeat this cycle until all processes are finished.
o Calculate finish, turnaround, and waiting times for each process.
a. Among the three (3) process scheduling algorithms that you have performed, which do
you think is the most efficient and why?
SRTF is generally the most efficient in minimizing waiting and turnaround times since it
prioritizes shorter tasks. However, it requires complex tracking of remaining burst times.
FCFS schedules based on arrival order, which can lead to long waiting times if a long process
arrives first (convoy effect). Round Robin improves responsiveness by sharing CPU time
more fairly among processes, especially when there are interactive tasks.
c. What could possibly happen if the value of the Quantum in Round Robin is increased
to 5? Elaborate on your answer.
Increasing the quantum to 5 would reduce context switching overhead, potentially improving
CPU efficiency. However, it could also lead to higher waiting times for shorter tasks since they
might need to wait longer for their turn.
d. In your opinion, why does the average turnaround time and waiting time vary per
algorithm?
Different algorithms prioritize processes differently. FCFS strictly follows arrival order, SRTF
minimizes wait by focusing on shorter tasks, and Round Robin shares CPU time equally. These
strategies affect the time each process waits and finishes.
e. Would you suggest the utilization of the Round Robin algorithm for process scheduling
in a file management system? Why or why not?
Round Robin is typically not ideal for file management because it may lead to increased wait
times and inefficiencies when dealing with file operations that require quick sequential access.
A priority-based or shortest job first approach could be more suitable.