Draw four Gantt charts illustrating the execution of these processes using FCFS, SRTN, SJF and Round Robin (quantum=2) scheduling.
FCFS (First-Come, First-Served) Scheduling:
Assume we have four processes P1, P2, P3, and P4, with the following execution times:
P1: 8 units
P2: 4 units
P3: 9 units
P4: 5 units
The Gantt chart for FCFS scheduling would look like:
| P1 | P2 | P3 | P4 |
0 8 12 21 26
SRTN (Shortest Remaining Time Next) Scheduling:
Assuming the same four processes with their __________ _________ _______ _________ ________ _______ ___ ______ ____ ______ ___ ______.
______ __________ ____ ____ _________ _____ ________ _________ _________.
_____ _________ _______ _______ ___ ___ ____ _________ _______ ____ _______ _____.
_____ _______ _________ __________ ___ ______ _____ ____ __________ _____.
________ _______ _____ ___ _______ ___ _______ ______ __________.
_____ ______ _______ ________ __________ _______ ______ ______ ________ __________.
_____ _________ ____ __________ ____ ______ __________.
__________ _________ ________ ______ ______.
_____ ________ ____ __________ __________ ____ __________ _____ _______.
____ ___ ___ ______ ________ _______ ___ ___ __________ ____ ________ ________.
_________ ___ _________ _____ _________ __________ _________ ____.
__________ ___ ________ _________ ________ ______.
______ ________ ____ _____ ___ ____ ________ ____.
________ _____ _______ ________ __________ ___ _______ _______ _______ ____ _________ ____.
__________ ______ _____ ______ _____ _____ __________.
_____ _________ ________ _____ ___ _____ _________ ________ _________ __________ ________.
___ ____ ____ ___ ___ ____.
___ __________ ___ ________ ______ ____ _____ ____.
____ ___ _____ ______ ____ _____ ___ _______.
______ _____ ______ ___ ______ _______ _________ ______ _______ _____ __________ _________.
_________ ______ ____ _____ ___ ______ ___ ___.
___ ___ ____ _______ ________ ______ ______ _______ _________.
_______ __________ ____ ________ ____ ___ _______ _______.
______ ______ ______ ___ ______ ___ ______.
________ ____ _______ _______ ____ _______ _________ ______ ____ ____.
______ ____ ________ ___ ____ __________ _________ ___.
_______ ___ _____ _______ _______ _______ ___ _______ ______ __________ _________.
_______ _____ _______ _______ ________ __________ __________ _____ _____ __________ _____.
_________ ________ ____ ________ ___ ___ ____ ___ ___.
__________ _________ ________ _______ ______ __________ _______ ________ _____ _________.
____ _____ ____ ______ __________ _______ __________.
_______ ___ ______ __________ __________ ___ ________ _________ _______ ________ ___.
_________ _________ _______ ____ ____ _________ _______ __________.
____ ____ ____ _______ ______ ________ ___.
___ _______ ____ ____ _______ _____.
_________ _______ ___ ____ _____ ______ _____ ___ _________.
Get Full Answer on WhatsApp