Using External Processes (II)
Learn how to prevent the event loop from blocking using external processes.
We'll cover the following
Let’s now implement the worker (our child process).
Note: It’s good to know that theÂ
send()
 method available on a child process instance can also be used to propagate a socket handle from the main application to a child process (look at thechild_process
documentation). This is actually the technique used by theÂcluster
 module to distribute the load of an HTTP server across multiple processes.
Implementing the worker
Let’s create the workers/subsetSumProcessWorker.js
 module, our worker process.
Get hands-on with 1200+ tech skills courses.