Write a worker thread pool that queues tasks and reuses a fixed number of workers.
HardP3Coding
Write a worker thread pool for Node.js that runs tasks on a fixed number of workers, queues tasks when all workers are busy, returns a promise per task, replaces a worker that crashes, and shuts down cleanly.
Saved automatically
Write or say your answer first, then compare it with the model answer.
Saved automatically