Cpu Scheduler Report
Cpu Scheduler Report
PREPARED BY
SATYAM SAURABH , VAIBHAV INGLE , ANKIT
BHARDWAJ
Intelligent CPU Scheduler Simulator
1. Project Overview
The Intelligent CPU Scheduler Simulator is designed to demonstrate various CPU
scheduling algorithms, including First-Come-First-Serve (FCFS), Shortest Job First
(SJF), and Round Robin (with a fixed quantum of 3). The simulator allows users to
input process details (arrival time, burst time) and visualize the execution order in
tabular format. Additionally, performance metrics such as average waiting time,
turnaround time, and response time will be computed.
2. Module-Wise Breakdown
3. Functionalities
- User Input Handling: Accepts processes and parameters dynamically.
- Scheduling Computation: Simulates scheduling algorithms and computes
performance metrics.
- Graphical Output: Displays results in tabular format.
- Performance Analysis: Shows average waiting and turnaround times.
- Responsive UI: Improved layout for better readability and user interaction.
4. Technology Used
Programming Languages:
- HTML, CSS, JavaScript for front-end implementation.
Other Tools:
- GitHub for version control and revision tracking.
- UML Diagrams for project design.
5. Flow Diagram
1. User Inputs Process Details → 2. Selects Scheduling Algorithm → 3. Algorithm
Computes Schedule → 4. Tabular Results Displayed → 5. Performance Metrics
Calculation
Future Scope:
- Add more scheduling algorithms (e.g., Priority Scheduling, Multilevel Queue,
Multilevel Feedback Queue).
- Implement Preemptive variants for SJF and Priority Scheduling.
- Enhance visualization with Gantt charts.
- Allow dynamic quantum input for Round Robin scheduling.
8. References
- Silberschatz, Galvin, & Gagne - Operating System Concepts.
- Tanenbaum, A. - Modern Operating Systems.
- Official JavaScript Documentation.
9. Appendices
A. AI-Generated Project Breakdown
Project Overview
The CPU Scheduling Simulator is designed to implement and visualize different CPU
scheduling algorithms, including First-Come-First-Serve (FCFS), Shortest Job First (SJF),
and Round Robin (fixed quantum = 3). It allows users to input process details such as
arrival time and burst time, execute the selected algorithm, and display results in tabular
form.
Module-Wise Breakdown
Input fields for Process ID, Arrival Time, and Burst Time.
o SJF: Processes with the shortest burst time are executed first.
Technology Stack
Execution Plan
B. Problem Statement
When designing and implementing a CPU scheduling simulator, several common issues
arise, affecting system efficiency and fairness. These challenges include:
1. Starvation in Scheduling
In Priority Scheduling and Shortest Job First (SJF), lower-priority or long
processes may get delayed indefinitely if shorter or higher-priority tasks keep
arriving.
First-Come-First-Serve (FCFS) may lead to long waiting times for short processes
if a long process arrives first (convoy effect).
Solution: Use Round Robin or Shortest Job First (SJF) for better turnaround time.
Round Robin (RR) scheduling reduces starvation but increases context switching
overhead, leading to wasted CPU cycles.
Traditional scheduling algorithms are often designed for single-core CPUs and may
not efficiently utilize multi-core processors.
If it’s too large, Round Robin behaves like FCFS, reducing fairness.
C. Solution/Code/Attached Screenshots