Find the turnaround time, average waiting time, throughput and processor utilization for each of scheduling algorithm mentioned in (a)
To calculate the performance metrics for each scheduling algorithm, we need to use the information about the execution times and arrival times of the processes. Based on the information provided in the previous question, here are the calculations for each scheduling algorithm:
FCFS (First-Come, First-Served) Scheduling:
Turnaround time for each process:
P1: 8 units
P2: 12 units
P3: 21 units
P4: 26 units
Average turnaround time = (8 + 12 + 21 + 26) / 4 = 16.75 units
Waiting time for each process:
P1: 0 units
P2: 8 units
P3: 12 units
P4: 21 units
Average waiting time = (0 + 8 + 12 + 21) / 4 = 10.25 units
Throughput = 4 processes / 26 units = 0.1538 processes per unit time
Processor utilization = (8 + 4 + 9 + 5) / 26 = 0.7308 or 73.08%
SRTN (Shortest Remaining Time Next) Scheduling:
Turnaround time for each process:
P1: 8 units
P2: 6 units
P3: 17 units
P4: 21 units
Average turnaround time = (8 + 6 + 17 + 21) / 4 = 13 units
Waiting time for each process:
P1: 0 units
P2: 2 units
P3: 8 units
P4: 16 units
Average waiting time = (0 + 2 + 8 + 16) / 4 = 6.5 units
Throughput = 4 processes / 21 units = 0.1905 processes per unit time
____ ______ _________ ________ ______ _____ ______ ______ _______.
______ _________ ____ __________ ____.
_______ ________ __________ ______ ________ _________ _______ ____ _________.
____ ______ _____ ______ _______ ____ ____ __________.
__________ ____ ______ _____ ____.
_______ _____ _____ ______ _____ ______ ___ _______ ___.
________ ________ ________ _______ ___ ___ _______ ____ _________ _________ _____ _________.
_________ _______ _________ _______ _____ __________ _________ _______ ________.
____ ________ ____ __________ _______ __________ ____ _________ __________ ___ ________ ___.
________ ____ _____ _________ _______.
____ ______ ________ ________ ____ ____ ________ _________.
_____ _____ __________ _______ ___ __________ ______ ___ _________ ________ _______.
______ ________ _________ ________ ___ ____ _______ ________ __________ ________.
_____ __________ ______ _________ __________ _____ _________ ___ _____ ______.
______ __________ ____ ____ _____ ___.
________ ___ ________ _____ _____ __________.
___ ____ ___ _________ ____ _______.
__________ ____ _____ ____ ________ _____ ________ ________ _______ ___ ______.
___ _____ ________ __________ ___ _______ ___ ______ ____ _____ _________.
___ ___ ____ _________ ___ ___ __________ ___.
___ ____ __________ _________ _________ _________ _________.
____ _______ ______ __________ _______ ________ _______ ______ ___ _________.
____ _________ ______ ___ _____ ______ ____.
______ _____ _____ ______ __________ ___ _____ ________ _______.
_______ ____ ________ ____ _______ _____ ________ __________ __________ ____.
_________ _______ ___ _________ _____.
__________ __________ _______ _______ _________ __________ ___ ________ _____ ________ ________.
__________ ___ _________ _______ ____.
________ _____ ________ ____ ________ _______ ____ _______ ___.
_________ _______ ______ _________ __________ __________ _____ ________ ____ _______ _______ ________.
____ _____ __________ __________ _____ _______ ______ _______ ___ _________ ______ ________.
________ ________ ___ _________ __________ ___ _______ _______ _______ __________.
_________ _______ __________ ________ _______ _____.
____ ___ ___ ___ __________ ______ _________ _________ _________ _________ ___.
_______ __________ ______ ____ _______ ______ _______.
_________ ________ ______ ___ __________ ________ ____ ______ _____.
___ _____ __________ ___ ________ ___ ________ ______ ______.
_______ ______ _______ _______ ________ ________ __________ ____ _________.
______ ___ ________ ___ _____ _________ _________ ____ ___ ________.
______ ______ ______ ____ _________ _______ __________ ________ _________.
______ __________ _______ ________ _______ _____ _______ _____ _______.
_______ _____ ______ ____ ___ ___.
_____ ________ ______ ______ __________ ____ ___ ________.
_____ ________ _____ __________ ________ _____ _____ __________ __________ ____ __________.
____ ______ _____ _________ _____ ____.
_________ _________ _________ ________ _______.
_______ ____ ______ _______ _____ ____ _______ ____.
____ ____ ____ _______ __________ _______ __________ ______ _______.
________ __________ __________ _________ ________ ______ ___ ________ _________ ___ _________ __________.
____ ____ _______ ____ _________ _____.
______ _______ ______ ________ _________ ______ __________ ____ _____.
___ ______ _____ ____ _______.
______ ____ _____ ____ ____.
______ _____ _________ ________ _________ ________ ______ ________ _________.
______ ______ _______ ______ ______ _____ ____ __________ _________ _________.
____ ________ _____ _____ _____ ________ ___ _________.
___ _____ ___ ___ ___ ____.
______ _____ ________ ____ ___ ______ _____ ______ ______.
______ _________ __________ ____ _____ ____ ____.
__________ __________ ___ ___ __________ __________ ___ ____ _________ ______.
_____ ________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required