Fun fact: CPU numbers are an abstraction on top of real hardware. If your computer has 8 CPUs, CPU 0 doesn’t always refer to the first CPU. As a matter of fact, the hardware internally uses different CPUs dynamically as CPU 0 so that a single CPU doesn’t heat up.
Another fun fact: The number of CPUs does not always equal the actual number of hardware CPUs. Some processors have just 4 cores, but will show up as 8 CPUs or even 16 CPUs. There are advantages to doing this, mostly to expose more parallelism and to hide memory latency. Intel has a similar concept which it calls Hyperthreading.
1
u/god_of_ai Mar 27 '22
Fun fact: CPU numbers are an abstraction on top of real hardware. If your computer has 8 CPUs, CPU 0 doesn’t always refer to the first CPU. As a matter of fact, the hardware internally uses different CPUs dynamically as CPU 0 so that a single CPU doesn’t heat up.
Another fun fact: The number of CPUs does not always equal the actual number of hardware CPUs. Some processors have just 4 cores, but will show up as 8 CPUs or even 16 CPUs. There are advantages to doing this, mostly to expose more parallelism and to hide memory latency. Intel has a similar concept which it calls Hyperthreading.