Cluster Basics Explanation
NodeJS
Medium
5 views
Problem Description
Print how many CPU cores exist and a note about clustering.
Output Format
Print two lines.
Official Solution
const os = require('os');
const cores = os.cpus().length;
console.log('cores: ' + cores);
console.log('Use clustering on meetcode when CPU bound');
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!