Why does a single threaded process execute on several processors/cores?
问题 Say I run a simple single-threaded process like the one below: public class SirCountALot { public static void main(String[] args) { int count = 0; while (true) { count++; } } } (This is Java because that's what I'm familiar with, but I suspect it doesn't really matter) I have an i7 processor (4 cores, or 8 counting hyperthreading), and I'm running Windows 7 64-bit so I fired up Sysinternals Process Explorer to look at the CPU usage, and as expected I see it is using around 20% of all