Question: How can you count the number of logical CPUs on the machine that is running Node?
- node -p "process.cpus"
- node -p "util.cpus().size"
- node -p "process.os.cpus"
- node -p "os.cpus().length"
Answer: The correct answer of the above question is Option D:node -p "os.cpus().length"