OS 06 Task Performance 1 - ARG
OS 06 Task Performance 1 - ARG
Instructions:
Process E F G H I J K
Arrival 0 2 3 5 11 17 24
Time
Bust Time 4 9 3 7 5 6 12
· First-Come First-Serve
A. Complete and detailed table
PROCESS E F G H I J K
Arrival 0 2 3 5 11 17 24
Time
Bust 4 9 3 7 5 6 12
Time
Finish 4 13 16 23 28 34 46
Time
Turnarou 4 11 13 18 17 17 22
nd Time
Waiting 0 2 10 11 12 11 10
Time
Tr/Ts 1.00 1.22 4.33 2.57 3.4 2.83 1.83
E F G H I J K
0 4 13 16 23 28 34 46
E F G H I J K
0 4 7 14 19 25 34 46
H F J I H K J
19 22 25 28 30 31 34 34
J K K K
34 37 40 43 46
b. Cite significant differences in the results of applying the First-Come First-Serve algorithm and Round
Robin algorithm. Elaborate on your answer.
Round Robin
High Average Turnaround Time and Waiting Time. Must perform a lot of contexts switching here, which will
keep the CPU idle. Use time slicing to execute every process. Preemptive and Efficient.
c. What could happen if the value of the Quantum in Round Robin is increased to 5? Elaborate on your
answer.
If the quantum value in the Round Robin scheduling method increases to 5, the time every procedure
can continue running continuously before getting preempted is extended. Because processes will require
longer time slices to run, this change could result in less context-switching overhead. However, it may result in
longer wait times for processes that require shorter execution durations, thus compromising the system's
overall responsiveness. The quantum size in Round Robin is chosen to strike a balance between decreasing
context-switching overhead and ensuring adequate reaction times for interactive operations.
d. In your opinion, why does the average turnaround time and waiting time vary per algorithm?
Because each scheduling algorithm has its own set of rules and priorities, average response time and
waiting time differ. First Come First Serve (FCFS) algorithms favor the order of arrival, which may result in
greater wait times for processes with shorter burst times. Shortest Job Next (SJN) and Shortest Job First (SJF)
algorithms prioritize the performance of the shortest jobs first, with the goal of minimizing wait times. Round
Robin assures fairness with its predetermined time slices, but it may result in longer turnaround times for
some types of workloads. The variety stems from how every algorithm generates judgments based on varied
factors, which influences the system's general effectiveness and reactivity.
e. Would you suggest the utilization of the Round Robin algorithm for process scheduling in a file
management system? Why or why not?
The Round Robin algorithm's usefulness for scheduling processes in a file management system is
determined by the system's specific requirements and characteristics. Round Robin is well-known for its
simplicity and fairness, making it an excellent choice for systems in which all processes should have an equal
portion of the CPU. Other scheduling techniques, such as Shortest Job Next (SJN) or Priority Scheduling, may
be more appropriate if the system comprises processes with radically varied execution periods or if timeliness
is a vital factor. Round Robin may result in inferior performance in circumstances with widely varying
execution periods, because the set time slices may not correspond well with the variable processing needs of
distinct activities in a file management system.