Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Writing a Task Allocator
Given a worker , a task allocator has to provide an allocation .
- Open this page.
allocate(Worker worker, int n)method that handles multiple tasks—the singleton case is handled by a default method of
Make sure that your implementation deals with special answer types, e.g.
- 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.
Clone this wiki locally
Press h to open a hovercard with more details.