N worker nodes each keep a queue of tasks. Add tasks, run them, print the queues — and rebalance when one node ends up with too many CPU-intensive tasks.
N worker nodes each keep a queue of tasks. Add tasks, run them, print the queues — and rebalance when one node ends up with too many CPU-intensive tasks.
Opens with the full question.