Homework Solution: Given the following processes and their execution times, create a horizontal time line of their…

    Q2) Given the following processes and their execution times, create a horizontal time line of their execution, and calculate the average waiting time separately for each of the following scheduling algorithms: 10 points (5 each) FCFS SJF Time taken for execution 13 18 Process P1 P2 P3 P4 P5 14
    Given the following processes and their execution times, create a horizontal time line of their execution, and calculate the average waiting time separately for each of the following scheduling algorithms: FCFS SJF

    Expert Answer

     
    FCFS :

    Q2) Given the restraintthcoming processes and their project seasons, invent a downright season row of their project, and proportion the mediocre protraction season partially restraint each of the restraintthcoming scheduling algorithms: 10 points (5 each) FCFS SJF Season smitten restraint project 13 18 Process P1 P2 P3 P4 P5 14

    Given the restraintthcoming processes and their project seasons, invent a downright season row of their project, and proportion the mediocre protraction season partially restraint each of the restraintthcoming scheduling algorithms: FCFS SJF

    Expert Counterpart

     

    FCFS :

    Process           Season smitten restraint project protraction season

    P1                                       13                                               0

    P2                                       18                                               13

    P3                                        5 31

    P4                                           9                                             36

    P5                                           14                                           45

    Mediocre protraction season:

    (0+13+18+5+9) / 5 = 9ms

    SJF:

    Process           Season smitten restraint project protraction season

    P3                                        5 0

    P4 9 5

    P1                                       13 14

    P5 14 27

    P2                                       18 41

    Mediocre protraction season:

    (0+5+9+13+14) / 5 = 4.6ms