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

 

13 Sep 2024
Answer :
Word Count : 928

To address the question regarding the set of processes with burst times and priorities, we will explore how different scheduling algorithms handle these processes. The focus will be on comparing the performance of three commonly used scheduling algorithms: First-Come, First-Served (FCFS), Shortest Job First (SJF), and Priority Scheduling. 

### 1. First-Come, First-Served (FCFS)

In the FCFS scheduling algorithm, processes are executed in the order they arrive. This approach is simple but may lead to the "convoy effect," where shorter processes wait for longer ones to complete. 

#### FCFS Scheduling Order:

1. P1 (8 ms)
2. P2 (3 ms)
3. P3 (4 ms)
4. P4 (7 ms)
5. P5 (6 ms)

Execution Timeline:

- P1: Starts at 0 ms, ends at 8 ms
- P2: Starts at 8 ms, ends at 11 ms
- P3: Starts at 11 ms, ends at 15 ms
- P4: Starts at 15 ms, ends at 22 ms
- P5: Starts at 22 ms, ends at 28 ms

Average Waiting Time Calculation:

- P1: Waiting time = 0 ms
- P2: Waiting ______ ________ ____ _______ ______ ______ ____.
_______ ________ ____ ___ ________ _________ __________ _____ ____ ______.
_____ _______ ___ _______ _________.
_______ _________ __________ ___ _________.
____ __________ _____ _______ __________ __________ ______ ____ ________ ___ ____.
__________ _____ ____ ___ ___ _______.
______ _____ ______ ______ ___ ________ ___ _________ ____ ___.
___ _____ _________ ___ ___ ______ _________ __________ ____.
___ _______ _____ _______ ______ ___ ________ _______ _______ ___ _____ _____.
___ __________ __________ __________ _______ ___ ____ _____ ____.
__________ _____ ______ ________ ______ ____ __________.
________ ______ _____ ______ ___ _________ _______ __________.
________ _____ ___ ________ ___ __________ ___ ________ ___ ___.
______ _______ ______ _______ _________ ___ _______ _________ ________ __________ _________ ________.
_______ _____ ___ _________ _________ ____ ____ __________ ____ ____.
_______ ________ _________ _____ _______ _______ _______ _______ _____.
________ ____ _________ ____ _____ __________ ______ _______.
______ ________ ____ ____ ____ ________.
_________ _________ _______ __________ ________ ____ _____ __________.
_______ ____ ___ ______ _________ _______ _____.
_____ _________ _______ ________ _______ ________ ______ ______ _____ _____ ___ ___.
_______ ________ _________ ____ _______ _______ _______.
_______ _______ _______ ________ ____.
__________ _______ _______ _____ _______ ________ ____ _______ _______.
______ _________ __________ ___ ____ _______ _____.
________ ________ ______ ____ _________ ______ _________ _________ ________ ______.
_______ ______ ________ ________ ______ _______ ______.
_____ ________ ______ _________ _____ ___ ___ ___ _____ _____.
_____ ______ _________ ________ ___ ___ _________ __________ ____.
__________ ______ ____ ______ __________ __________.
________ ______ ___ ____ ______ _______ ______ _____ _____ _____ ____ ______.
_______ __________ ________ _______ ___ __________ __________ __________.
__________ __________ _____ ______ ________ ________.
____ _________ _____ ________ ___ ________ ____ _______.
__________ ___ _____ __________ ___ ______ ___.
_______ _______ ________ _____ _____ _________ ______.
____ ____ ________ _____ ______ ____ _____ ___.
_____ ________ ________ __________ _________ ____ _____.
____ ________ _________ __________ ____.
__________ _____ _______ ________ ________.
____ ____ _________ ______ ___ _____ ______ _________ ________ _______.
____ _______ _____ ________ ______ ___.
_____ _________ ______ ____ ________.
_____ _________ ________ ______ ___ ______ ________ _________ ______.
_________ _________ ________ ___ __________.
_________ ____ ______ __________ _____ _________.
____ ____ ______ _____ ____ _______ ____ ________ ______.
________ ________ _________ _______ ________.
___ ____ ___ ___ __________ ________ _____ _____ _________ _____ _________.
_______ _________ __________ _________ ______ _____ ________ _____ __________ _________ _____.
________ _____ _____ _________ ____ __________ ________ __________.
_________ ______ _________ _______ ______ ____ ___.
_____ _______ __________ __________ _________.
_____ _______ _________ __________ _____ _________ _____ ________.
_________ ______ ___ _______ __________ _____.
_________ _______ _______ ______ _______ ________ ____.
_________ __________ __________ _____ __________ _________.
____ _________ ___ _______ ________ ________ ________ ______ _______ _____ ________ _______.
_________ _________ ________ _________ __________ ___ _________ __________ ____ _________ ________.
____ ___ ________ ________ ______ ______ ____ _____ _____.
_______ _______ _____ __________ __________ ___.
__________ __________ __________ ______ _________ _______ _________ ______ __________ ________ _______.
___ _____ ___ _________ _________ ____.
___ __________ ____ ______ ______ __________ _________ _______ ____ _______.
______ ___ _______ _________ __________ ________ ______ ________ _______ __________ _____ _________.
__________ ______ ________ __________ _____ _________ ________ ___.
_____ _____ _______ ________ _________ __________ _______.
___ _______ ___ __________ _____.
_________ ___ ___ _________ ___ _______ _____ ______ _______ _____.
_______ _______ _________ __________ ________ __________ ________ ___ ________ _____ ______ __________.
_______ ______ ___ ____ _________.
___ _______ ____ ____ ________.
____ ___ ______ ______ ___ _____ _________ _______ _________ ________.
________ ___ ___ ___ _______ __________ ______.
____ _________ _____ _________ __________ _______ _________ _________ _________ _________ ____ ___.
______ _____ __________ _____ __________ __________ __________.
__________ ___ ______ ______ _____ _____ __________ __________ ________ ___ ____ ______.
________ ___ ____ ___ ______.
____ ________ ____ _________ _________ ________ ____ __________ __________.
____ ________ ____ _______ _____ ______ _______ ___ _____ _____.
________ ____ ____ ______ __________ _______ ___ ___ ________.
___ ______ ________ ______ _________.
_____ _____ _________ ________ _________ ___ _________ _________.
_________ _______ _______ _______ _______ ____.
_____ ________ ___ ____ _______ _______ _________ ________ _____ ____ _________ _______.
____ ___ ___ __________ ____ _____ ______ ___.
_________ ___ ______ _________ _____.
__________ ______ ________ _____ _________ ________ _______ __________ __________ ___ ____.
_______ ______ _____ _________ ___ _____ _____ ____ ______ __________ _______.
_______ _________ ________ ______ ______ _______ ___ ______ _____.
__________ ______ _________ _______ ________ _________ ____ ______ ____ ________.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Consider the following set of processes, with the length of the CPU bu
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support