Idea · Sep 4, 2026
Browser OS Scheduler Lab
Students build a fully browser-native OS process scheduler simulation using Web Workers and SharedArrayBuffer, then add a Claude-powered inspector that explains scheduling decisions in plain English.
What it would do
Browser OS Scheduler Lab is a 3-week classroom assignment for OS or systems programming courses. Students implement three scheduling algorithms (First-Come-First-Served, Round Robin with configurable quantum, and Priority Scheduling with aging) entirely in the browser using Web Workers as simulated processes and SharedArrayBuffer as shared memory. A React dashboard visualizes the ready queue, wait times, and CPU utilization in real time. In week 3, students integrate the Claude API to build an 'OS Inspector' chat panel: the inspector is given the scheduler's decision log and can answer natural-language questions like 'Why did process P3 wait so long?' with pedagogically accurate explanations. Students submit a performance benchmark report comparing their three algorithms on a standard workload, plus a short reflection on what the AI inspector revealed about their implementation.
Key features
- Web Workers as simulated processes with configurable arrival times, burst times, and priorities
- SharedArrayBuffer for shared state (process table, ready queue) with Atomics for safe concurrent access
- Real-time Gantt chart and metrics dashboard (average wait time, turnaround, CPU utilization) in React
- Claude-powered OS Inspector that ingests the decision log and answers natural-language questions
- Configurable workload generator for stress-testing and performance comparison reports