navigator.hardwareConcurrency
- 类型:<number>
navigator.hardwareConcurrency 只读属性返回当前 Node.js 实例可用的逻辑处理器数量。
🌐 The navigator.hardwareConcurrency read-only property returns the number of
logical processors available to the current Node.js instance.
console.log(`This process is running on ${navigator.hardwareConcurrency} logical processors`);