Quick Start Guide
Get started with the CPU Scheduling Algorithms Simulator in just a few steps. This guide will walk you through accessing the simulator and running your first algorithm simulation.Getting Started
Access the Simulator
The fastest way to start is using the live demo:Visit https://planificacion-app-rcl8.onrender.com in your browser.Alternatively, you can:
No installation required! The simulator runs entirely in your browser.
- Open the local HTML file:
AlgoritmosPlanificacion/Planificacion/index.html - Run with Docker:
docker run -p 8080:80 algoritmos-planificacion
Select an Algorithm
On the landing page, you’ll see five algorithm options:
- FIFO - First In, First Out (simplest)
- SJF - Shortest Job First
- Round Robin - Time-sliced scheduling
- Priority - Priority-based scheduling
- MLFQ - Multi-Level Feedback Queue
Enter Process Data
After selecting an algorithm, you’ll configure the simulation:
- Enter the number of processes (e.g.,
3) - Click Continue
- For each process, enter:
- Arrival Time - When the process enters the system
- CPU Time - How long the process needs the CPU
- Priority (Priority algorithm only) - Lower number = higher priority
- Quantum (Round Robin/MLFQ only) - Time slice per execution
For Round Robin, enter a single quantum value (e.g.,
2).For MLFQ, enter comma-separated quantum values for each priority level (e.g., 3,5,7).Run the Simulation
Click the Simular button to calculate results.You’ll immediately see:
- Process metrics (arrival, start, finish, waiting, and turnaround times)
- Total execution time
- Real-time simulation controls
View the Visualization
Control the real-time animation with these buttons:
- ▶ Iniciar - Start the step-by-step animation
- ⏸ Pausar - Pause the simulation
- 🔄 Reiniciar - Reset the animation to the beginning
- ⬅ Volver al inicio - Return to algorithm selection
- CPU Box - Shows which process is currently executing
- Ready Queue - Displays processes waiting for CPU time
- Gantt Chart Timeline - Builds the execution timeline block by block
Example Simulation
Let’s run a complete FIFO simulation with three processes:Input Configuration
Expected Results
After clicking Simular, you’ll see:Understanding the Metrics
- Llegada (Arrival) - When the process entered the system
- Inicio (Start) - When the process began executing
- Fin (Finish) - When the process completed
- Espera (Wait) - Time spent waiting in the ready queue
- Retorno (Turnaround) - Total time from arrival to completion
Visualization Interface
During the animated simulation, you’ll see:CPU Display
A gradient purple box showing the currently executing process (P1, P2, etc.) or Idle when no process is running.
Ready Queue
Gray boxes representing processes waiting for CPU time. Processes appear in queue order based on the algorithm’s scheduling rules.Gantt Chart Timeline
Indigo blocks building from left to right, each representing one time unit of execution. Hover over blocks to see them scale up.Comparing Algorithms
Record Results
After running a simulation, note the total execution time and average waiting time for your processes.
Try Another Algorithm
Select a different algorithm (e.g., SJF) and enter the exact same process data.
For meaningful comparison, always use identical process configurations across algorithms. This isolates the impact of the scheduling strategy.
Round Robin Example
Round Robin adds time-slicing behavior:Next Steps
Installation Guide
Set up the simulator locally with Docker or static files
Algorithm Details
Learn how each scheduling algorithm works internally
Usage Guide
Advanced configuration and simulation techniques
Interpreting Results
Interpret metrics and compare algorithm efficiency
Troubleshooting
The simulator doesn't load
The simulator doesn't load
Ensure you’re using a modern browser (Chrome, Edge, Firefox, or Safari). The simulator requires JavaScript and may not work in older browsers.
Animation doesn't start
Animation doesn't start
Click the ▶ Iniciar button after seeing the results table. If the simulation already ran, click 🔄 Reiniciar then ▶ Iniciar.
Invalid process input error
Invalid process input error
Ensure all fields contain valid positive integers. Arrival and CPU times must be numbers greater than or equal to 0.
MLFQ quantum format
MLFQ quantum format
For MLFQ, enter comma-separated integers like
3,5,7 (no spaces). Each number represents the quantum for one priority level.