Interview practice question
Low-level design of a task scheduler
Backend Engineering · OOP and Design Patterns · Experienced
Design the classes for an in-process task scheduler that supports one-time and recurring tasks with priorities.
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Task interface; ScheduledTask with next run time.
- Priority queue ordered by time and priority.
- Worker thread pool.
- Recurrence strategy (fixed rate, cron).
- Cancellation, error handling.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.