Skip to content

HarshNag1/cpu_scheduler_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Live Demo:
https://harshnag1.github.io/cpu_scheduler_simulator/

Typing SVG

A pure client-side engine for visualizing OS process scheduling.

JavaScript HTML5 CSS3


⚡ Overview

This project is a standalone, browser-based CPU scheduling simulator.
No backend, no setup — just open and run.

Everything (algorithms, metrics, Gantt charts) runs directly in your browser using Vanilla JS, making it fast, lightweight, and perfect for static hosting.


🛠️ Quick Start

No build steps. No virtual environments. No local servers.

  1. Clone or download this repository
  2. Open the Static CPU directory
  3. Double-click index.html

Or just use the live version 👇
👉 https://harshnag1.github.io/cpu_scheduler_simulator/


🧮 Supported Algorithms

The client-side engine supports:

  • FCFS (First Come First Serve)
  • SJF (Shortest Job First) — Non-preemptive
  • SRTF (Shortest Remaining Time First) — Preemptive
  • Round RobinWith configurable Time Quantum
  • PriorityNon-preemptive
  • Preemptive Priority
  • Aging PriorityPrevents starvation dynamically

🎯 Key Features

  • Animated Gantt Charts → Watch processes move step-by-step
  • Live Metrics → Waiting Time, Turnaround Time, Response Time, CPU Utilization
  • Algorithm Comparison → Run all 7 algorithms on same data
  • Zero Config → Works offline, no install needed

🏗️ Architecture

Static CPU/
├── index.html     # Entry point
├── css/           # Styling
└── js/            # Core logic + scheduling engine

About

A CPU Scheduler Simulator with real-time visualizations for FCFS, SJF, Round Robin, and Priority Scheduling. Users can input process details, view Gantt charts, and analyse performance metrics like waiting time and turnaround time.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages