Skip to main content
✏️ 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.___());
}

✏️ Type the missing code: