Wednesday, June 22, 2016

Design a Task scheduler

Given the interface below, implement a task scheduler.
interface Task {
    void Run();
    Set<Task> GetDependencies();
}

Additionally, the task scheduler should follow two rules.
1. Each task may only be executed once.
2. The dependencies of a task should be executed before the task itself.

http://shirleyisnotageek.blogspot.in/2015/03/task-scheduler.html

No comments:

Post a Comment