Node.js - Cluster Module
Consider this Node.js code using clustering:
What will be the output when you run this code?
const cluster = require('cluster');
if (cluster.isMaster) {
cluster.fork();
cluster.fork();
} else {
console.log('Worker process running');
}What will be the output when you run this code?
