A web-based CPU Scheduling Algorithm Calculator developed using Java, JSP, Servlet, HTML, CSS, JavaScript, and Apache Tomcat.
The project calculates and compares different CPU scheduling algorithms using process details given by the user.
- First Come First Serve (FCFS)
- Shortest Job First (SJF)
- Shortest Remaining Time First (SRTF)
- Priority Scheduling
- Round Robin Scheduling
- Dynamic process input table
- Calculates Completion Time (CT)
- Calculates Turnaround Time (TT)
- Calculates Waiting Time (WT)
- Calculates Average TT and Average WT
- Displays Gantt chart
- Shows Idle time
- Compares all algorithms
- Recommends the best algorithm based on lowest Average WT
- Java
- JSP
- Servlet
- HTML
- CSS
- JavaScript
- Apache Tomcat
- NetBeans IDE
TT = CT - AT WT = TT - BT Average TT = Total TT / Number of Processes Average WT = Total WT / Number of Processes
Where:
AT = Arrival Time BT = Burst Time CT = Completion Time TT = Turnaround Time WT = Waiting Time
Best Algorithm Selection:
The best algorithm is selected based on the lowest Average Waiting Time. If two algorithms have the same Average Waiting Time, the lower Average Turnaround Time is used as the second comparison factor.
Project Notes
SJF is implemented as non-preemptive.
SRTF is the preemptive version of SJF.
Priority Scheduling is non-preemptive.
Lower priority number means higher priority.
Round Robin uses user-given time quantum.