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 process with the shortest burst time is
____ ____ ___ _______ ___ ___ ________.
_____ _________ _______ ____ _________ _______ __________ __________.
____ __________ ____ _______ ____ ___ ____ _________ __________.
_________ ____ _____ __________ _____ _________ _________ __________ ___ ___ __________ __________.
________ ________ _______ ____ _______ _____.
________ ______ ______ ________ ____ ___.
______ ________ _______ ________ ___ _____.
__________ _________ ___ ____ _____ ___ ___ ___ _____.
___ _______ _____ ________ ___ ___ ______ ___ ____ _____.
_______ __________ _________ ___ _______ _______ ________ _________ _____ __________ _______ ________.
________ __________ __________ _____ ___ ____ ___ _______ ________ ______ ______ _______.
________ _________ ___ ____ _______ ____ ___ _______ ___ _________ ___ ______.
______ ____ ____ ________ ___ __________.
____ ______ _______ __________ __________ _______ ____ _____.
_________ _________ ______ __________ ________.
______ _____ _________ ____ _____ ________ ______ ______ ________ _________ ___ ______.
__________ ____ ______ ______ _____ ________ ______ ____ ___ ____.
___ ____ ______ _______ __________ __________ _________ ______ _______ ______.
______ _____ ______ ___ ________ ________ _________ __________ _______ ____.
________ _____ _____ ___ _______ ________ ________ _________ __________ ________ ____.
____ _____ ______ ________ ________ _____ ______ ___.
_____ _____ _____ ____ ___ ___ _________ __________.
___ ___ ___ ___ _______ ___ _________ _____ _______ ______ _______.
________ ___ ________ _____ __________ _____ ___ _________ ______ __________.
_____ _____ _______ ___ _____ ______.
_________ ____ _________ ______ ____ __________.
________ ___ _____ ______ ____ ______.
__________ __________ _______ _____ __________ ______ ______.
___ ________ ________ _________ _______ ___.
____ ___ ___ ______ ___ ____ ________.
___ ___ ______ ___ _____ _________ _________.
_____ __________ _____ _____ ___.
___ _______ ___ ____ ____ ________ ________ _____ _______ _____ _________.
_________ ______ ______ _____ ___ ________ ______.
_________ ___ _______ _______ ________ ________ ______.
__________ __________ __________ ____ _______ ______ ___ ___ ___.
____ ______ _____ _____ ____ _______ _____ _______ _________.
________ __________ ____ ____ _________ _____ __________ _____ ______ _______ _______ ____.
__________ ______ _______ ____ _______.
________ _____ ________ _________ ________.
____ ______ __________ _____ _____ _________ __________ __________ _________ ____ _____.
__________ _______ _________ ___ _________.
________ ______ _________ _______ _____ __________ _________ ______.
_______ ______ __________ ________ ____ ____ _____ ______ __________ ______ ________.
___ _____ _______ _________ __________.
________ __________ ________ ______ _____ _______ ___ ________ ____ _____ __________.
________ __________ ____ ____ ___ ______.
__________ ____ _______ _______ ___ ________ ______ _______ _________ __________.
_______ _____ __________ ___ ______ ___ _____ _____ ____ ______ ______ ____.
_______ __________ ______ ___ _____ _________ ______ _______ ____ ____ ______.
_____ ______ ___ ______ ___ ______.
________ _________ _____ ________ _____ __________ ______ ____.
_______ _______ ______ _______ __________ ________.
_______ _______ ____ _______ __________ __________ ____.
___ __________ _______ __________ _____ ______ __________ _________ ___ ________.
___ _____ __________ ______ _____ ___ ________ ___ __________.
_____ ____ __________ _________ ___ _________ ______.
__________ __________ ______ _______ ___ ___ ___ _____ ___ _____ ____.
______ ______ __________ _________ ___ _______ ___.
_______ ________ ____ _________ __________ _________ _______.
____ ________ ________ _________ ___ _________ ________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required