Consider the following set of processes, with the length of the CPU burst time given in milliseconds. The processes are assumed to have arrived in the order P1, P2, P3, P4 and P5, all at time 0.
| Process | Burst time |
| P1 | 5 |
| P2 | 3 |
| P3 | 4 |
| P4 | 7 |
| P5 | 6 |
In order to analyze the scheduling of the given set of processes, we need to consider various scheduling algorithms such as FCFS (First Come First Serve), SJF (Shortest Job First), SRTF (Shortest Remaining Time First), and RR (Round Robin). Let us analyze the performance of each of these algorithms for the given set of processes.
FCFS (First Come First Serve): In this scheduling algorithm, the processes are executed in the order in which they arrive. The performance of FCFS depends on the order in which the processes arrive, and it may lead to a phenomenon known as convoy effect, where a long process arriving first may delay the execution of shorter processes that arrive later.
For the given set of processes, the execution sequence would be P1-P2-P3-P4-P5, and the average waiting time would be (0+5+8+12+19)/5 = 8.8 ms. The turnaround time for each process would be (5, 8, 12, 19, 25) ms respectively. Thus, the average turnaround time would be (5+8+12+19+25)/5 = 13.8 ms.
SJF (Shortest Job First): In this scheduling algorithm, the ________ ______ __________ ______ _______ ___ ____ _________ __________ ___ __________ ______.
___ ____ ______ _______ ______.
________ _________ __________ _________ __________ ____ ____ _________.
________ ________ ____ ___ _____ ________ _____ ____ ________ ______.
_________ ___ ___ _______ _______.
_________ _________ _______ _________ _____ ____ _______ __________ ______ _______ ____.
_____ ________ ________ _____ __________ ____ ____ __________ ________ _______ _____.
________ _____ _______ _______ _________ ____ _____ ________ ___.
____ __________ ________ __________ ______ ___ ______ ____ _________ _________ _____ ______.
__________ ________ __________ __________ _______ _________ __________ ______ ____ __________ _____ ___.
_______ ______ _________ _____ ____ __________ _____ _________.
__________ ______ _________ ______ _______ ________ ______ _______ __________ ________.
______ _____ _________ _____ ______ ______ ___ _____ ___ ______ ____ ____.
__________ ___ _______ _____ ___ ________ _________ ________ ______ ___.
________ ______ ________ __________ _____ _____ __________ ____ ___ ________ ____.
____ _____ _____ ___ ____ _______ _________ ______ _______.
_____ ____ ________ ____ ________.
____ _____ ______ ___ _____ __________ _________ ____ ____.
____ _____ ________ ___ ______ ______ __________ ___ ______ ________.
_______ _______ ____ ________ ______ ____ ______ ____ ______ ________ __________.
_____ ______ ________ ________ ___ ____ ___.
________ ___ __________ _________ __________ ______ _________ _______ _______ _____ _________ ___.
_______ _________ _____ _______ _______ ___ ____ ___.
______ ______ ____ ________ _________ _________ __________ _________ __________ ____ _____ ________.
____ _________ ____ _______ _______ __________ _________ ________ __________ ___.
_______ ________ ________ __________ ___ ________ ________.
_______ ____ _______ ______ __________ _______ ______.
________ ________ ________ __________ ___ ______ ______ __________ __________.
________ _______ ______ _______ _______ ____ __________.
_________ _________ __________ ____ _____ _______ _________ __________ _____ _______ _____.
_____ ___ ________ ________ ___ ____ __________ _____ _________ ____ _________.
_______ ______ ___ _____ _____ ____ _________ _______ ___.
______ ________ ___ ________ _________ _______ _______.
___ __________ _________ _______ ___ ________.
______ ________ ___ _____ __________ _________ _____ _____ ___.
________ ___ ________ _____ ______ _____.
_________ ___ ____ _______ ___ _______ _________.
_________ ________ _____ ______ _____ _____ ___.
____ _________ _________ __________ ___ _____ _____ _______ _________ _______ ________.
________ ________ _____ ______ _______ _________ __________ ______.
________ ___ ______ ______ _______ ____ _____ _____.
__________ _________ ____ ___ _______ ______ ___ _____.
____ __________ __________ _____ ___ _____ ____ _______ _______ ___ _________.
_______ _______ _______ ________ _________.
___ ___ _________ __________ ____ __________ ____ __________ __________ __________ _____.
_______ _______ ___ ________ __________ _______ ______ ___.
__________ ________ ______ ____ ___ _______ _____ ______ ______ _____ __________ _____.
______ ___ _____ _________ ________.
___ _________ __________ _________ _____.
___ __________ _________ _________ _______ ___ __________ _________ ________.
_____ ______ __________ __________ _________ ______ ________ ___ ___ ______ ____.
__________ ___ ________ ___ _______ __________ _______ _____.
__________ ________ ____ ______ _______ _____ ____ __________ ___ __________ ________.
__________ _____ _______ ___ ________ _________ ______ ________ ___.
_______ __________ ______ __________ _________.
_________ ___ ______ ____ __________ _________ ________ __________.
____ _____ ____ ____ __________ ______ _____ ______ _________.
_________ _________ ____ __________ __________ __________ __________ _____ ____.
______ _________ _____ _______ ________ _______ ___ ______.
Get Full Answer on WhatsApp