Question

31. (12pts) Four processes pi, P2, Ps and pa arrive in the ready queue at times 0,3,8,11 and ks respectively. Draw the Gantt

0 0
Add a comment Improve this question Transcribed image text
Answer #1

31(a)

Round Robin (quantum 10) : Round Robin is a CPU Scheduling algorithm where each process is assigned a fixed time slot in a cyclic way.

1-03 | 8| (-|331| e* 11 2 3 44

NATT CHART: 20 rase i (S2-9)+(5G-11) L1 46.25

ion LI 2- 4 32-20.

31(b) Non-preemptive Shortest Job First is a CPU Scheduling algorithm which selects the waiting process with the smallest execution time for execution. The process stays in the CPU until is is executed.

1-03 | 8| (-|331| e* 11 2 3 44

GNATT CHART r 3 1g 29 S6 Aeage fespount Time: (18-0) + 42-3) +(29-8) LI 30 ,-75 GM

31(c) Preemptive Shortest Job First is a CPU Scheduling algorithm in which whenever a job with a shorter execution time than the running process comes to ready queue, the current process is removed from execution to ready queue and the shorter job is executed instead.

1-03 | 8| (-|331| e* 11 2 3 44

NATT CHAKT 2 2. ㄐ 3 19 23 41 53

12l 014 ㄐ ㄐ

Add a comment
Know the answer?
Add Answer to:
31. (12pts) Four processes pi, P2, Ps and pa arrive in the ready queue at times 0,3,8,11 and ks r...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4. Consider a ready queue with four processes :- Process Arrival Time Burst Time (ms) P1...

    4. Consider a ready queue with four processes :- Process Arrival Time Burst Time (ms) P1 Priority P2 P3 P4 P5 For each of the following CPU scheduling algorithms, determine the turnaround and average waiting time for each of the process :- a. Shortest remaining Time First b. Shortest Job First C. Priority Scheduling (Both pre-emptive and non-preemptive) d. Round Robin (quantum is 1 ms)

  • 8. Consider the following 5 processes in the ready queue: Process Burst Priority Arrival time n...

    8. Consider the following 5 processes in the ready queue: Process Burst Priority Arrival time n w P1 P2 w N P3 P P - W WE O P4 N P5 N A O Draw Gantt charts illustrating the execution of these processes for each of the following algorithms: (a) preemptive SJF, (b) RR (with quantum = 1), (C) FCFS, and (d) preemptive priority, and calculate the respective turnaround and waiting times.

  • The following processes P1, P2, P3, P4 and P5 arrive at the same time (t =...

    The following processes P1, P2, P3, P4 and P5 arrive at the same time (t = 0). Establish a timeline of the process scheduling for the following scheduling algorithms while also identifying start times for each process. FCFS (first come, first serve; assume order of P1, P2, P3, P4 and P5) SJF (shortest job first) Priority iv Round Robin (quantum = 1, assume order of P1, P2, P3, P4 and P5) Determine the average waiting time for each algorithm.

  • Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:

    Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:Processburst TimePriorityP1103P211P323P414P552For each of the scheduling algorithms, FCFS, Shortest-Job-First (SJF, non-preemptive), Priority (smaller priority number implies higher scheduling priority), and RR (quantum = 1) do the following.Draw a Gantt chart to show how these processes would be scheduled.Give the turnaround time (total time from the first arrival into ready state until CPU-burst is completed) of each process.Give the waiting time (total time spent in the Ready state) of each process.Give...

  • Operating Siytem Concepts Homework No. 1 Variant No. 1 Student Cristian Anchei Paraschine (academic group, name,...

    Operating Siytem Concepts Homework No. 1 Variant No. 1 Student Cristian Anchei Paraschine (academic group, name, surname) I got the task.... (date, signature) Homework Submission Date: November 6th, 2019 Assignment: Consider the following set of processes, with the length of the CPU burst time given in milliseconds!: Process CPU burst time, ms Arrival time, ms Priority P 2 2 2 7 Ps 3 3 Draw a Gantt chart that illustrates process scheduling for these algorithms: a) First Come - First...

  • Assume a dynamic queue which is serviced by a Priority Based Round Robin algorithm such that ther...

    Assume a dynamic queue which is serviced by a Priority Based Round Robin algorithm such that there exists three priorities (1,2,3) which are used as multipliers of the basic time quantum value with the resulting number being the maximum service time the corresponding job will receive each time it gets the CPU. For a maximum amount of time equal to 1 basic time quantum , a priority 2 job gets the CPU for the maximum amount of time equal to...

  • Here is a table of processes and their associated arrival and running times: Show the scheduling...

    Here is a table of processes and their associated arrival and running times: Show the scheduling order for these processes under First-Come-First-Served (FCFS), Shortest-Job First (SJF), and Round-Robin (RR) with a quantum = 1 time unit. Assume that the context switch overhead is 0 and new processes are added to the head of the queue (i.e. next in line for scheduling) except for FCFS. In the table, use notation such as P1, P2, etc.

  • The processes are assumed to have arrived in the order of P1, P2, P3, P4, P5, P6 and P7 all at time 0.

    Table 1 shows the list of processes and burst time for each processesTable 1 ProcessBurst TimeP113P25P323P43P531P66P714 The processes are assumed to have arrived in the order of P1, P2, P3, P4, P5, P6 and P7 all at  time 0. a)    Calculate the average waiting time when each of the below scheduling algorithm is used. Assume that a quantum 8 is being used:i.) First Come, First Server                                                                      (6 marks)ii.) Round Robin                                                                                       (6 marks)iii.) Shortest Job First, non preemptive                                                      (6 marks)

  • Three processes P1, P2 and P3 with related information are given in the following table: Process...

    Three processes P1, P2 and P3 with related information are given in the following table: Process Burst Time (ms) Arrival Time(ms) P1400 P2 3 0 10 P3 L T 20 T is a positive integer (T>0). If you use a preemptive shortest job first scheduling algorithm to schedule the three processes, make a Gantt chart, and calculate different waiting times of three processes. Please show a professional perfect solution with necessary details.

  • luuent Name: 1. (100 points) Three processes P1, P2 and P3 with related information are given...

    luuent Name: 1. (100 points) Three processes P1, P2 and P3 with related information are given in the following table: Process Burst Time (ms) Arrival Time (ms) P1 T 0 P2 30 20 P3 20 T is a positive integer (T>0). Please use a non-preemptive shortest job first scheduling algorithm to make Gantt charts, and calculate different waiting times of three processes for different cases. Please write a professional perfect solution with detailed steps. 30

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT