Node.js · Middle · Question 51 of 75

What are worker threads for?

Explanation

Each worker has its own V8 instance and event loop. Communicate with postMessage; large binary data can be transferred or shared with SharedArrayBuffer.

Further reading

Problem with a question

Node.js · Middle · question 51

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz