Scheduling interview questions
Practice 4 questions on scheduling. Each runs in a real in-browser editor with Jest tests and a worked, diagram-backed solution.
4 questions
- MEDIUM
Microtask Batch Scheduler
Coalesce all schedule calls made in one synchronous frame into a single flush on the next microtask.
25 minJavaScript - MEDIUM
Priority Request Scheduler
PREMIUMSchedule async requests under a concurrency limit, always running the highest-priority waiter next with a stable FIFO tiebreak.
35 minJavaScript - MEDIUM
Task Runner with Dependencies
Run async tasks in dependency order, executing independent ones in parallel and catching cycles.
30 minJavaScript - HARD
Cooperative Scheduler
Run a queue of tasks in time slices, yielding control between them so the main thread stays responsive.
40 minJavaScript