OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Get number of physical CPU cores in JavaScript?

  • Thread starter Thread starter Leo Jiang
  • Start date Start date
L

Leo Jiang

Guest
navigator.hardwareConcurrency returns the number of logical cores. In my experiments, the performance stops improving if I have more Web Workers than physical cores. Is there a way to get the number of physical cores?

<p><code>navigator.hardwareConcurrency</code> returns the number of logical cores. In my experiments, the performance stops improving if I have more Web Workers than physical cores. Is there a way to get the number of physical cores?</p>
 
Top