Node.js - Cluster Module
What will be the output if you run this code on a machine with 2 CPU cores?
const cluster = require('cluster');
const os = require('os');
if (cluster.isPrimary) {
console.log('Primary process');
for (let i = 0; i < os.cpus().length; i++) {
cluster.fork();
}
} else {
console.log('Worker process');
}