worker threads

The Node.js module for running JavaScript in parallel threads inside one process, each with its own V8 isolate and event loop.

In more detail

Workers suit CPU-bound jobs such as hashing or parsing. They exchange messages with postMessage and can share memory through SharedArrayBuffer. Starting one takes time and memory, so reuse them through a pool.

Related terms

Taught in

References