educative.io

Shouldn't NumCPU be the number of CPU cores instead of CPU threads?

Since a CPU Core can execute only one CPU thread at a time, it seems to me that we should use the number of cores instead of the number of threads, no?


Course: Grokking Modern System Design Interview for Engineers & Managers - Learn Interactively
Lesson: Put Back-of-the-envelope Numbers in Perspective - Grokking Modern System Design Interview for Engineers & Managers

1 Like

in my understanding, the number of CPU threads can be higher than the number of cores due to hyper-threading.

What is Hyperthreading and How Do You Enable It? | HackerNoon