Skip to content

Single-Threaded Task Scheduler

Published 3 October 2026

Onsite Round 3 — Single-Threaded Task Scheduler

The next 45-minute coding round asked me to implement a simple scheduler running on one CPU and one thread.

  • schedulePeriodic(): Schedule work that repeats according to a recurring interval.
  • scheduleOnce(): Schedule work for a single execution.
  • scheduleWithDelay(): Schedule work to begin after a specified delay.