navigator.hardwareConcurrency
新增于: v21.0.0
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`);