Developer
Under the hood
Every chart in Schedulix comes from a small, pure TypeScript scheduling engine in lib/engine. Here is how to call it, and the raw output for your current workload.
Built by
The person behind Schedulix OS.
AV
Aranya Vij
Schedulix OS was built to make the invisible visible — turning abstract scheduling theory into a living, breathing lab you can watch, tweak, and truly understand.
Quick start
The same inputs always produce the same timeline, so results are easy to check by hand.
example.ts
import { runSimulation } from "@/lib/engine/scheduler"
const processes = [
{ id: "p1", name: "P1", arrival: 0, burst: 6, priority: 2, color: "#8DB6F9" },
{ id: "p2", name: "P2", arrival: 2, burst: 4, priority: 1, color: "#F7A6C4" },
{ id: "p3", name: "P3", arrival: 4, burst: 2, priority: 3, color: "#93D5BD" },
]
// "fcfs" | "sjf" | "srtf" | "rr" | "priority-np" | "priority-p" | "mlq" | "mlfq" | "edf"
const result = runSimulation("srtf", processes, {
quantum: 2,
contextSwitchCost: 0,
})
result.metrics.avgWaiting // → 2.67
result.gantt // → P1 [0–6], P3 [6–8], P2 [8–12]
result.results // → completion, waiting, turnaround, response per processAPI
runSimulation(algorithm, processes, config)SimulationResultRuns one policy on a workload. Pure and deterministic: the same input always gives the same schedule.
result.metricsSchedulingMetricsavgWaiting, avgTurnaround, avgResponse, cpuUtilization, throughput, contextSwitches, fairness, and more.
result.ganttGanttSlice[]Ordered { processId, name, start, end, color } slices, including idle gaps (processId = null).
result.resultsProcessResult[]Completion, turnaround, waiting, and response time for each process.
compareAll(processes, config)ComparisonRow[]Runs every algorithm on the same workload for side-by-side comparison.
Live output
The engine's output for your current Simulator workload (algorithm: fcfs). Gantt is trimmed to the first 8 slices.
result.json
{}