Question

Consider the following set of processes, with the length of the CPU burst time given in milliseconds.

Process Burst
time
Priority
P1 8 3
P2 3 1
P3 4 4
P4 7 2
P5 6 5

The processes are assumed to have arrived in the order P1, P2, P3, P4 and P5 and

 all of them have arrived at time 0.

a. Draw corresponding Gantt charts illustrating the execution of these processes using FCFS, SJF, SRTN, Priority based scheduling/even-driven scheduling and Round Robin (quantum=2) scheduling algorithms.
b. What is the turnaround time of each process for each of the scheduling algorithm in (a)?
c. What is the waiting time of each process for each of the scheduling algorithm in (a)?
d. Which of the schedules in (a) results in minimal average waiting time (overall processes)? 

15 Apr 2024
Answer :
Word Count : 585

a. 
Here are the Gantt charts for each scheduling algorithm:

1. FCFS (First Come, First Served):
```
| P1 | P2 | P3 | P4 | P5 |
0    8    11   15   22   28
```

2. SJF (Shortest Job First):
```
| P2 | P3 | P1 | P5 | P4 |
0    3    7    15   21   28
```

3. SRTN (Shortest Remaining Time Next):
```
| P2 | P3 | P1 | P5 | P4 |
0    3    7    15   21   28
```

4. Priority Based Scheduling/Event-Driven Scheduling:
```
| P2 | P4 | P1 | P3 |

_____ ___ __________ ____ ______ ___ ________.
______ ____ ___ _________ ___ ______ _________ ____.
___ _____ _________ _______ _____ ______ ______ ______.
_______ ___ ________ _______ _________.
______ ______ _________ ________ _____ __________ ____ ________ ________ ________ __________ ____.
________ ________ ____ _______ ______ ____ _________ ____ _________.
_______ ___ _______ ___ ________ ______ ____.
______ ____ ___ ___ _________ ___ _______ ________ _______ ________ _____ _____.
_______ ______ _________ ____ _____.
__________ ___ _______ _____ _______ ________ _____.
___ ___ _____ _____ ______ _________ ________.
______ ___ ________ _____ ___ _______ __________ ___ ________.
___ _________ ______ ______ _____ ___ _____ _______ __________.
_______ _________ ___ ________ ___ _______.
______ _____ _____ ____ ___ ______ ________ _________ _______ ___.
_____ ________ _________ _____ _____ _________ ____ ___ _______.
____ __________ _____ _____ ________ ________ __________ _________.
_______ _____ __________ _________ _________ ___ _______ _________ ____ ________.
__________ _____ ________ ___ ______ _________ ___ ____.
___ _______ __________ _________ ________.
____ ________ _____ __________ _____ __________ _______.
_________ ___ ____ _______ ___ ________ ______ ________ _____.
____ __________ ________ _________ _________ ____ _______ _________ _________ __________.
___ ____ _____ _________ _________.
____ ________ _______ ________ ________ _________ ________ _____ _________ __________.
____ __________ _______ ___ _____ __________ ____ ___ _____ ______ _______ ________.
________ _______ _______ ________ ________ ____.
______ ____ _____ _______ _______ _________ __________ ________ __________ _____ _____ _____.
_________ ___ _____ ____ _________ _________ ____ ____ _______ _________ ___.
_________ ____ ______ _____ _______ ___ ________ ______ _________ ________ _______.
_____ ___ ______ ____ ______.
__________ ______ __________ ________ _________ ______ ___.
_______ ______ _______ _________ ______.
_______ __________ _______ ________ _____ ________ ____ ___ ______ ________ __________ ______.
__________ ______ ______ _____ __________ ______.
__________ _____ _________ _______ _________ _____ __________ ______.
___ _________ ____ ________ _____ ____ ____.
____ ___ _______ ___ _______ ____ _______ _____ __________ ______ _______ ______.
_____ ________ ______ _____ ______ _____.
___ _______ _________ ___ _______ _______ ___ ________ ________ ______ ________.
________ ____ ______ ________ _____ __________ _______ __________ ____ _____ __________.
_____ ____ ______ ____ _______ __________ ____.
____ __________ ______ ______ _____ ___ ____ _______ _________ ________ __________ ____.
__________ _______ ____ __________ __________ _______ ____ _________ _______ _________ ______ __________.
_____ __________ _____ ______ _________ _____ ________ ____ __________ ______.
____ ________ ________ _________ ______.
____ ____ ______ ___ ____ ________ ________ ____ __________.
____ _____ _________ ___ ____ ___ _______.
_____ ______ ____ ________ _______ ______.
______ ____ ____ _________ _______ _____ ________ __________.
_____ __________ ______ ____ _______ _____ _____ ______ ___ ___ __________.
_________ _______ ____ _________ ______ _________ _________.
_______ _________ _________ ______ ___ _________ ____ __________ ___ _______ _______ _______.
_____ __________ _____ ______ _______.
_______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 203 2024 - Consider the following set of processes, with the length of the CPU bu | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→