The CPU Scheduling Simulator App is a Java-based desktop application designed to simulate various CPU scheduling algorithms. It provides an interactive and visual way for users to understand the mechanics and performance of different scheduling techniques, such as First Come First Serve (FCFS), Shortest Job First (SJF), and others.
This project was developed as part of Base Learning 4 in my university coursework, aimed at enhancing understanding of operating system concepts.
- Supported Scheduling Algorithms:
- First Come First Serve (FCFS)
- Shortest Job First (SJF)
- Shortest Remaining Time First (SRTF)
- Round Robin (RR)
- Priority Scheduling:
- Non-preemptive
- Preemptive
- Customizable Inputs:
- Add processes with specific burst time, arrival time, priority, and time quantum.
- Interactive Simulation:
- Gantt Chart visualization of CPU scheduling.
- Performance metrics displayed, including:
- Average waiting time.
- Average turnaround time.
- CPU utilization.
- User-friendly Interface:
- Easy-to-use dropdown menu to select algorithms.
- Clear and concise output displays.
- Read input from
txtfile.
- Java Development Kit (JDK): Version 17 or later
- Java Runtime Environment (JRE): Version 17 or later
- Operating System: Windows
- Clone the repository:
https://github.com/hilu03/CPU-Scheduling-Simulator-App.git
- Navigate to the project directory:
cd CPU-Scheduling-Simulator-App - Locate the
MyMain.javafile inside theCPU_Schedulingfolder. - Run the
MyMain.javafile to start the application.
- This project was created by Luong (me) [GitHub: @hilu03] and Khanh [GitHub: @zkai1530].
- Special thanks to Khanh for her valuable contributions in developing the algorithms and the user interface.
