Question: create a Java - based simulator that visually demonstrates various CPU scheduling algorithms. The simulator will allow users to input parameters such as the number
create a Javabased simulator that visually demonstrates various CPU scheduling algorithms. The simulator will allow users to input parameters such as the number of processes, their arrival times, burst times, and the scheduling algorithm to be used. It will then visually simulate the execution of these processes and provide performance metrics.
Required Features:
Process Creation:
o Allow users to input the number of processes.
o Generate random or userdefined arrival times and burst times for each process.
o Create process objects with their respective attributes.
Scheduling Algorithm Selection: Implement at least three common CPU scheduling algorithms :
FirstComeFirstServed FCFS
Shortest Job First SJF
Round Robin
Multilevel scheduling with different priorities; and using the following algorithms:
Qpriority Priority scheduling
Qpriority Priority scheduling
Qpriority Shortest Job First
Processes enter the queue according to its priority. To avoid starvation, the process from the lower queue will be upgraded to higher queue after a certain time threshold to avoid starvation. The threshold is to be set by the user.
Simulation:
o Simulate the execution of processes based on the selected algorithm.
Performance Metrics:
o Calculate and display performance metrics such as:
Average waiting time
Average turnaround time
Deliverables:
o Project report
You must include screen capture images of the output along with the description.
o Source code
Should be commented and indent.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
