Design an OS-level task scheduler. Include process and thread modeling, multiple scheduling policies (round-robin, shortest-job-first, priority-based), preemption, context switching, and resource management.
Suggested time: 45 minutes
Loading the workspace...
An OS task scheduler is one of the most demanding OOD problems because it combines real-time constraints, concurrency, and pluggable algorithms. Before designing classes, let's define exactly what the system must do.
Configurable Scheduling Policies
Preemptive Scheduling
Process Lifecycle Management
Resource Management and Deadlock Prevention
Design an Operating System Task Scheduler: editorial solution
Community solutions for Design an Operating System Task Scheduler
Design a Notification System (hard)
Design a Hotel Booking System (medium)
Design a Game State Management System (advanced)
Design an LRU Cache (advanced)
Design a Resource Management System (advanced)