Question: Write a Java program that simulates the FCFS CPU scheduling policy. Assume that you have only three processes. The inputs to the program are the

Write a Java program that simulates the FCFS CPU scheduling policy. Assume that you have only three processes. The inputs to the program are the arrival time and burst time of each process. The outputs of the program are the response time, waiting time, and turnaround time for each of the three processes. The following is a sample run of the program (the underlined numbers are entered by the user who runs the program):

Write a Java program that simulates the FCFS CPU scheduling policy. Assume

note: enter different numbers for the arrival and burst times to check program, run screen shot required

What is P1 arrival time? 0 What is P1 burst time? 12 What is P2 arrival time? 3 What is P2 burst time? 10 What is P3 arrival time? 5 What is P3 burst time? 5 P1 response time = 0 P1 wai (0 P1 turnaround time = 12 P2 response time = 9 P2 waiting time = 9 P2 turnaround time = 19 P3 response time = 18 P3 waiting time = 18 P3 turnaround time = 23 ting time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!