Question

Five processes arrive to run on a CPU. The scheduler puts them in its data structure. The table below lists the processes, ho

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

Answer a): First Come First Serve Shedular :

we schedule first job first and continue its execution until it completes.

P1 P1 P1 P1 P2 P2 P2 P3 P3 P4 P4 P4 P4 P4 P5
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Answer b) Shortest Job First:

we schwdule shortest job among the all job first and continue its execution until it completes.

P5 P3 P3 P2 P2 P2 P1 P1 P1 P1 P4 P4 P4 P4 P4
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Answer c)Round Robbin

we schedule all job with the time quantum 1 as per first come firt serve basis we repeat scheduling until it completes.

P1 P2 P3 P4 P5 P1 P2 P3 P4 P1 P2 P4 P1 P4 P4
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Answer d)Priority Scheduling and Round Robbin

we schedule all job with their Priority and apply time quantum 1, we repeat scheduling until it completes.

P2 P4 P5 P1 P3 P2 P4 P1 P3 P2 P4 P1 P4 P1 P4
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Add a comment
Know the answer?
Add Answer to:
Five processes arrive to run on a CPU. The scheduler puts them in its data structure....
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
  • Implement the following 3 CPU scheduling algorithms Simulate and evaluate each with the set of eight...

    Implement the following 3 CPU scheduling algorithms Simulate and evaluate each with the set of eight processes below. Use any programming language. The program listing should be submitted with the report. FCFS (First Come First Serve) non-preemptive (partial results provided) SJF non-preemptive MLFQ Multilevel Feedback Queue (absolute priority in higher queues)             Queue 1 uses RR scheduling with Tq = 5             Queue 2 uses RR scheduling with Tq = 10             Queue 3 uses FCFS All processes enter first...

  • Assume that you have four different processes with the following attributes: Process   Arrival time.   CPU Burst....

    Assume that you have four different processes with the following attributes: Process   Arrival time.   CPU Burst.   I/O Burst Total CPU time A. 0 4 4 9 B 3 2 3 7 C 6 5 1 11 D 12 1 1 5 As we did in class, perform a scheduling simulation using these four processes according to the following algorithms: 1) First Come First Serve 2) Round Robin with time slice = 1 3) Round Robin with time slice = 3...

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

  • Scheduling algorithm

    1.Six processes A, B, C, D, E, F are run under an operating system which uses priority scheduling. The arrangement is to decrement the priority of a process after it has run for a quantum. In the case of equal priorities, the process suspended for the longest time is chosen to run. The priorities assigned to the processes are 20, 11, 15, 12, 18, 14 respectively, and are all long CPU-bound processes. If the quantum is 100 ms, then how...

  • I'm try to complete an Operating Systems assignment where we have 8 processes, and each process...

    I'm try to complete an Operating Systems assignment where we have 8 processes, and each process has between 14-18 bursts. We have to do a FCFS simulation, SJF simulation, and MLFQ simulation. I am well aware of how to calculate everything for the processes when we just have one set of bursts to deal with, however these processes have way more than that. I am a very visual learner, I would love if someone could explain to me how to...

  • Design Principles Canvas Ā 8 pts Question 35 Five batch jobs, A, B, C, D, and...

    Design Principles Canvas Ā 8 pts Question 35 Five batch jobs, A, B, C, D, and E, arrive at a computer system at time 0, 1, 2, 3, 4, respectively. And they have service time of 7.1. 3,5, and 4, respectively. The new jobs arrive a little ahead of the expiration of time slices. For each of the following scheduling algorithms, determine the turnaround time for each process for all jobs. Ignore process switching overhead. • Round robin with a...

  • Please help me create this CLI CPU Scheduling Simulator in java: First Come First Serve (FCFS)...

    Please help me create this CLI CPU Scheduling Simulator in java: First Come First Serve (FCFS) Round Robin (RR) Process information The process information will be read from an input file. The format is: pid arrival_time burst_time All of fields are integer type where: pid is a unique numeric process ID arrival_time is the time when the task arrives in the unit of milliseconds burst_time the is the CPU time requested by a task, in the unit of milliseconds The...

  • operating system question. Table 9.5 and figure 9.5: Problem Description Consider the following set of processes...

    operating system question. Table 9.5 and figure 9.5: Problem Description Consider the following set of processes and arrival and processing time in- formation: Process Arrival Time Processing Time | C C C - Perform the same analysis as depicted in Table 9.5 and Figure 9.5 from our textbook for this set of processes. For the submission of this assignment for this class, you need to do FCFS, RR with a time quantum of 4, SPN, and SRT only (though I...

  • What following meaning? 1. at command : 2. background (bg) command : 3. background process :...

    What following meaning? 1. at command : 2. background (bg) command : 3. background process : 4. child process : 5. jobs command : 6. kill command : 7. kill signal : 8. kill all command : 9. nice command : 10. parent process : 11. parent process ID (PPID) : 12. process : 13. process ID (PID) : 14. process priority : 15. process state : 16. ps command : 17. pstree command : 18. top command: 19. trapping...

  • CODE IN C TO GET THIS RESULT CPU SCHEDULING: proj2 input.1 SRTF OUTPUT Schdeuling algorithm: SRTF...

    CODE IN C TO GET THIS RESULT CPU SCHEDULING: proj2 input.1 SRTF OUTPUT Schdeuling algorithm: SRTF Total 6 tasks are read from "input.1". press 'enter' to start... ================================================================== <system time 0> process 2 is running <system time 1> process 2 is running <system time 2> process 2 is running <system time 3> process 3 is running <system time 4> process 3 is running <system time 5> process 3 is running <system time 6> process 3 is running <system time 7>...

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