An article by Ganeshmani P about implementation of worker threads in Node.js. After the release of Node.js V10.5.0, Worker Threads are available in the Node.js module.
Under some circumstances a single thread doesn’t perform well. One of them is CPU Intensive Task. CPU Intensive tasks are the one that blocks the main thread.
The article then discusses solutions:
- Child process
- Worker threads