Question
Topic Round Robin

Answer the following using the First Come First Serve Scheduling Algorithm SHOW COMPLETE SOLUTION 1. Process AT BT P1 1 10 P2
0 0
Add a comment Improve this question Transcribed image text
Answer #1

FIrst Come First Serve scheduling executes the process according to their arrival time. The process which comes first or arrive early will be executed first. So let's arrange the process according to their arrival time.

Process Arrival Time(AT) Burst Time(BT)
P2 0 15
P1 1 10
P3 2 8
P8 3 5
P9 4 20
P4 5 7
P5 6 5
P7 8 4
P6 9 3

Now Let's find out the completion time of each process

Process which arrives at t = 0 will take burst time to complete while for other process completion time of process executed before plus their burst time must be considered to find the completion time.

Now finding completion time of each process using the above table.

Process Arrival Time(AT) Burst Time(BT) Completion TIme(CT)
P2 0 15

BT = 15

CT2 = 15

P1 1 10

CT1 = Previous Process Completion Time(CT2) + Burst Time

CT1 = 15 + 10

CT1 = 25

P3 2 8

CT3 = 25 + 8

CT3 = 33

P8 3 5

CT8 = 33 + 5

CT8 = 38

P9 4 20

CT9 = 38 + 20

CT9 = 58

P4 5 7

CT4 = 58 + 7

CT4 = 65

P5 6 5

CT5 = 65 + 5

CT5 = 70

P7 8 4

CT7 = 70 + 4

CT7 = 74

P6 9 3

CT6 = 74 + 3

CT6 = 77

Let's find out the turn around time and waiting time for each process->

Turn Around Time (TAT) = Completion Time (CT) - Arrival Time(AT)

Waiting Time (WT) = TAT - Burst Time(BT)

Process Arrival Time(AT) Burst Time(BT) Completion TIme(CT) Turn Around Time(TAT) = CT - AT Waiting Time(WT) = TAT - BT
P2 0 15 15 15 - 0 = 15 15 - 15 = 0
P1 1 10 25 25 - 1 = 24 24 - 10 = 14
P3 2 8 33 33 - 2 = 31 31 - 8 = 23
P8 3 5 38 38 - 3 = 35 35 - 5 = 30
P9 4 20 58 58 - 4 = 54 54 - 20 = 34
P4 5 7 65 65 - 5 = 60 60 - 7 = 53
P5 6 5 70 70 - 6 = 64 64 - 5 = 59
P7 8 4 74 74 - 8 = 66 66 - 4 = 62
P6 9 3 77 77 - 9 = 68 68 - 3 = 65

Average Waiting Time = 0 + 14 + 23 + 30 + 34 + 53 + 59 + 62 + 65 / 9

= 37.77

GANTT CHART:

P2 P1 P3 P8 P9 P4 P5 P7 P6

0 15 25 33 38 58 65 70 74 77

Add a comment
Know the answer?
Add Answer to:
Topic Round Robin Answer the following using the First Come First Serve Scheduling Algorithm SHOW COMPLETE...
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
  • C program Read file problem: For example, I have an input.txt file like this: q 1...

    C program Read file problem: For example, I have an input.txt file like this: q 1 tq 4 p1 10 p2 5 p3 7 p4 20 p5 17 p6 9 p7 3 p8 11 p9 15 p10 1 I want the num of q is in one array, tq is in one array, the order of process(ie,p1,p2) is in one array, and process time is in one array(process time is the number after like p1,p2). There may many q,tq,p so...

  • (C++) I need to write a priority queue(where the processes inside are listed as example: P25:2...

    (C++) I need to write a priority queue(where the processes inside are listed as example: P25:2 , 25 being a randomly assigned ID(1-50) and 2 being a randomly assigned priority number(1-10). Once the priority queue is full(10 max), it will transfer the highest priority process to a waiting queue. Once the waiting queue is full(7 max), one process(highest priority) will transfer to a ready queue where the system would perform the process in a round robin style. Once 25 processes...

  • 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)

  • 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.

  • implement MLFQ using C++ please preferably linked list P1 {4,24,5,73,3,31,5,27,4,33,6,43,4,64,5,19,2} P2 {18,31,19,35,11,42,18,43,19,47,18,43,17,51,19,32,10} P3 {6,18,4,21,7,19,4,16,5,29,7,21,8,22,6,24,5} P4 {17,42,19,55,20,54,17,52,15,67,12,72,

    implement MLFQ using C++ please preferably linked list P1 {4,24,5,73,3,31,5,27,4,33,6,43,4,64,5,19,2} P2 {18,31,19,35,11,42,18,43,19,47,18,43,17,51,19,32,10} P3 {6,18,4,21,7,19,4,16,5,29,7,21,8,22,6,24,5} P4 {17,42,19,55,20,54,17,52,15,67,12,72,15,66,14} P5 {5,81,4,82,5,71,3,61,5,62,4,51,3,77,4,61,3,42,5} P6 {10,35,12,41,14,33,11,32,15,41,13,29,11} P7 {21,51,23,53,24,61,22,31,21,43,20} P8 {11,52,14,42,15,31,17,21,16,43,12,31,13,32,15} will compute the overall wait times, response times, and turnaround times for each process and averages for FCFS the processes follow {CPU, IO, CPU, IO, ...} output should look like this Now Running: P1 Ready Queue: Process Burst P2 18 P3 6 P4 17 P5 5 P6 10 P7 21 P8 11 Now In I/O: Process...

  • 16. Consider a single-processor system that uses the round-robin (RR) process scheduling algorithm. Assume that the...

    16. Consider a single-processor system that uses the round-robin (RR) process scheduling algorithm. Assume that the time quantum is 10 milliseconds. Consider the five processes with the arrival time and the burst time, in milliseconds, shown in the table below Arrival Time Burst Time (milliseconds) (milliseconds) Process Pl P2 P3 P4 P5 0 24 20 23 24 Which of the five processes is the last to finish its execution? (A) P (B) P2 (C) P3 (D) P4 (E) P5

  • operation system please i need the answer now VULTUR Using FCFS (First-Come First-Served) scheduling algorithm, find...

    operation system please i need the answer now VULTUR Using FCFS (First-Come First-Served) scheduling algorithm, find the Average waiting time for the below processes Process Arrival time Service Time P2 P3 P4 TTT Anal 3(12pt) T- Pathp Can there be starvation in first come first serve based scheduling algorithm? Explain. TTT Arial v 3 (12pt) T. 5. 5. Path:p 18 How does Processor scheduling help us in achieving high throughput? Name the three types of Processor scheduling? TT T Arial...

  • Given the following set of processes with corresponding execution times (in ms), arrival times and priority...

    Given the following set of processes with corresponding execution times (in ms), arrival times and priority (1 – highest).  For each scheduling algorithm: Construct a table showing which process is active and for how long until all processes are completely serviced (as done in class). Calculate the average waiting time and turnaround time. Process ID Burst (ms) Arrival time P1 9 0 P2 12 0 P3 3 0 P4 30 0 P5 20 0 P6 10 0 First Come First Serve...

  • Java program The round-robin scheduling problem: using queue There are n processes in a queue. Each...

    Java program The round-robin scheduling problem: using queue There are n processes in a queue. Each process has namei and timei. The round-robin scheduling handles the processes in order. A round-robin scheduler gives each process a quantum (a time slot) and interrupts the process if it is not completed by then. The process is resumed and moved to the end of the queue, then the scheduler handles the next process in the queue. For example, we have the following queue...

  • (d) Pre-emptive priority scheduling [4 marks]: Consider the following set of processes, with the length of...

    (d) Pre-emptive priority scheduling [4 marks]: Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Burst Priority Arrival Time P1 8 3 0 P2 3 4 1 P3 6 2 3 P4 3 1 5 P5 1 5 7 P6 3 8 14 P7 8 5 18 (d-1) Draw Gantt chart illustrating the execution of these processes using pre-emptive priority (a smaller priority number implies a higher priority) [2 marks] 00   01  ...

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