Node.js - Worker Threads
Analyze this child process code:
And
Why might the parent not receive any messages from the child?
const { fork } = require('child_process');
const child = fork('child.js');
child.send('start');
child.on('message', msg => console.log(msg));And
child.js:process.on('message', msg => {
console.log('Child received:', msg);
});Why might the parent not receive any messages from the child?
