Why doesn't multithreading in C# reach 100% CPU?

前端 未结 13 1328
眼角桃花
眼角桃花 2021-01-30 22:17

I\'m working on a program that processes many requests, none of them reaching more than 50% of CPU (currently I\'m working on a dual core). So I created a threa

13条回答
  •  孤城傲影
    2021-01-30 22:55

    Maybe I'm misunderstanding something, but you said none of your requests (each in a separate thread) reaches 100% CPU.

    What operating system are you using?

    I seem to vaguely recall that in old versions of windows (e.g., early XPs and 2000s), CPU utilization was considered from total of two processors, so a single thread wasn't able to make it past 50% unless it was the idle process..

提交回复
热议问题