Commit 19ab2618 authored by Luke Childs's avatar Luke Childs Committed by Vse Mozhet Byt
Browse files

doc: clarify os.cpus() returns logical CPU cores

Original text implied it returns physical cpu cores. This is misleading
as `os.cpus().length` is often used to get the CPU core count in
Node.js. In reality that will return the thread count which may not be
what the user intended.

PR-URL: https://github.com/nodejs/node/pull/16282
Fixes: https://github.com/nodejs/node/issues/16279


Reviewed-By: default avatarJoyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: default avatarBryan English <bryan@bryanenglish.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
parent 9be3d99b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment