SchedXAdaptive CPU Scheduler
Connecting...
v0.9.0 - Portfolio Release

SchedX

Adaptive CPU Scheduling Simulator

Explore how modern operating systems allocate CPU time. SchedX bridges the gap between classic CS theory and modern multi-level queue systems by visualizing a custom C-based Hybrid Scheduler in real-time.

Polyglot Architecture

SchedX runs a true C-based scheduling engine compiled directly into the backend. By leveraging standard streams (stdin/stdout), the Node.js Express server acts as a bridge, streaming precise JSON simulation traces directly to the Next.js frontend.

  • Next.js App Router (React, TypeScript, Tailwind)
  • Express API (Node.js, Child Processes)
  • Custom C Engine (High-Performance Scheduler)
struct Process {
  int id;
  int arrival_time;
  int burst_time;
  ProcessType type;
};

/* Adaptive Hybrid Evaluation */
if (proc.waiting_time > AGING_THRESHOLD) {
  promote_process(&proc);
  emit_event("AGING", proc.id);
}

The Adaptive Hybrid Engine

Real-Time

Strict Priority

Preempts other workloads. Always executes first when ready, minimizing response time for critical tasks.

Interactive

Adaptive Round Robin

Time quantum scales dynamically based on system load, balancing fairness and context-switch overhead.

Batch

Shortest Job First

Optimized for sheer throughput. Built-in aging prevents starvation by promoting long-waiting jobs to Interactive.