Writing a Task Allocator

Dmitry Ustalov edited this page Sep 27, 2015 · 4 revisions

Given a worker w, a task allocator has to provide an allocation Task Allocation.

Implementation Checklist

  • Open this page.
  • Implement the allocate(Worker worker, int n) method that handles multiple tasks—the singleton case is handled by a default method of TaskAllocator.
  • Make sure that your implementation deals with special answer types, e.g. skip.
  • Ensure that your implementation is stateless, i.e. given the same input parameters, an existent allocator should produce the same output as a new one.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.