✏️ Code CompletionND Node.js Hard⚡+35 XP
Cluster Fork
Complete to spawn a worker process per CPU.
✏️ Fill in the blank
const cluster = require('cluster');
if (cluster.isPrimary) {
os.cpus().forEach(() => cluster.___());
}Complete to spawn a worker process per CPU.
const cluster = require('cluster');
if (cluster.isPrimary) {
os.cpus().forEach(() => cluster.___());
}