Question

Which of the schedules in (a) results in minimal average waiting time (overall processes)? 

13 Sep 2024
Answer :
Word Count : 647

To determine which schedule results in minimal average waiting time for processes in an operating system, we need to evaluate various CPU scheduling algorithms. The average waiting time is calculated as the sum of the waiting times of all processes divided by the number of processes. Different algorithms approach process scheduling differently, resulting in varying waiting times. Let’s explore the common scheduling algorithms:


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

  • Mechanism: Processes are scheduled in the order they arrive in the ready queue.
  • Advantages: Simple to implement and understand.
  • Disadvantages: Poor performance with processes of varying burst times. Leads to the "convoy effect," where a long process delays all subsequent shorter processes.

Example Calculation: For processes P1,P2,P3P1, P2, P3 with arrival times of 0 and burst times of 10, 5, and 2:

  • P1P1 executes first, then P2P2, and P3P3.
  • Waiting times: P1=0,P2=10,P3=15P1=0, P2=10, P3=15.
    Average waiting time: 0+10+153=8.33\frac{0 + 10 + 15}{3} = 8.33.

FCFS may not result in minimal average waiting time due to the variability of burst times.


2. Shortest Job Next (SJN) / Shortest Job First (SJF) Scheduling

  • Mechanism: Selects the process with the shortest burst time.
  • Advantages: Provably optimal in minimizing average waiting time when preemption is allowed (Shortest Remaining Time First, SRTF).
  • Disadvantages: Requires knowledge of burst
_________ _________ _________ ________ ___ ________ _____ ____ __________.
____ _______ ____ ___ __________ ________ _________ ___ __________ ____ _________ _________.
____ ______ _____ ____ ___ __________ ______ _____ __________ _____ ________.
_______ ______ ______ _____ _____ __________ _______ ________.
______ ___ ___ _______ ______ _____ _________.
_____ ________ ______ ___ _____ ___.
_________ ____ _______ ___ ____ _________ ________ ________.
_____ ________ ____ ___ _____.
______ _______ ______ _____ ______ _____ ___.
__________ ____ ______ ________ ________ ____ _____ __________ _______ _______.
_______ _____ ______ ____ ______ __________.
_____ _______ _______ ____ __________ _________ ____ ___ ________ ________ ________ ______.
___ _______ ______ _____ __________ ________ ________ _____ __________ _________.
______ ____ ___ ________ ___ _______ ______ _________ ________ ______ _____.
__________ _________ ________ __________ __________ ______ __________ ____ _______ ______ ________ _______.
_____ _________ ____ __________ _______ ____ _________ __________ _________ _____.
____ _______ ______ ___ ________.
________ ________ ______ ____ _______ _____ _______.
_____ ___ ________ _________ ________ _____ _________ ______ ______ _____.
___ __________ ________ ___ ___ ____ _____ _________ _______ ______ _______ ______.
___ ____ _____ _____ _____ ____ ___ ______.
____ _____ __________ ______ ____ _________ ___ _____ __________.
_________ _________ __________ __________ _____ _______ __________ ______ ______ __________ _____.
_________ _________ _______ _______ _______ ______ _________.
________ ______ _______ ________ _________.
______ ___ ____ __________ ________.
______ _______ ___ ____ __________ _____ ________ _____ ________ ____.
____ ________ ________ ____ ___ ____ _______.
____ _____ ________ _________ ________ ____ ______.
_______ _______ ___ ______ _________ _________ _________ _________ ______.
_______ ________ ____ _____ ____ _____ _______ _____ _____.
____ _______ _____ _______ ____ _____ __________.
_______ ______ ____ ___ ______ _________.
______ _______ _____ __________ ___ __________ ________.
_________ _____ __________ ____ ____ ____ ___ _____ ____ ____.
___ _________ ______ _________ _________ _________ ____ ____ __________ _______ ____ _________.
_____ ______ ________ __________ ____ ______ ______ ____ ______.
___ _______ ___ _____ _________ ___ ___ ________ ____ ____.
______ ___ ___ _____ _________ _____.
___ ____ _____ ______ ______ ________.
_________ ______ ______ __________ __________ ___ ________ ____ _____.
______ ________ ___ __________ __________ _________ ___ ________ ____ _________.
______ _________ ____ ______ __________.
_______ ______ _________ _____ _________ ________ _____.
___ ________ ___ _____ _________.
__________ ________ ____ _____ ______ ____ _____ ____ _________.
__________ ___ _______ ____ __________ _____ ___.
____ _________ _________ ______ __________ _________ _____ ________.
_____ __________ ___ ______ ______ ______.
____ ___ __________ ______ ______ ___ _____ ___ ______.
______ ____ ________ ___ ________ ________ ____ _______ ____ _______ ________.
__________ _________ ___.
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 - Which of the schedules in (a) results in minimal average waiting time | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→