Question
IMPORTANT : Please HARDCODE the data inside the code NO PROMPT please!!! I'm a beginner in JAVA: The Process Scheduler relies on a scheduling algorithm,
IMPORTANT : Please HARDCODE the data inside the code NO PROMPT please!!! I'm a beginner in JAVA: The Process Scheduler relies on a scheduling algorithm, based on a specific scheduling policy, to allocate the CPU in the best way to move jobs through the system efficiently. Write a Java program that will simulate the following process scheduling algorithm: 2. Shortest Job Next (SJN) Your Java program should produce tables to presents computed results for each scheduling algorithm as shown in the following sample data for the validation your programs computed results for each scheduling algorithm.
B) Timeline for Shortest Job Next (SJN) algorithm: 12 15 20 Turnaround Time ArrivalCPU Start Finish Time Cycle Time Time Job Finish Time Arrival Time 15 9 12 7 7-07 20 20-1=19 12 112-2=10 15 | 15-3=12 9 |9-4=5 4 Average Turnaround Time (71910125)/5 53/510.6 B) Timeline for Shortest Job Next (SJN) algorithm: 12 15 20 Turnaround Time ArrivalCPU Start Finish Time Cycle Time Time Job Finish Time Arrival Time 15 9 12 7 7-07 20 20-1=19 12 112-2=10 15 | 15-3=12 9 |9-4=5 4 Average Turnaround Time (71910125)/5 53/510.6Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started