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

前端 未结 13 1356
眼角桃花
眼角桃花 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:40

    It is probably no longer the processor that is the bottleneck for completing your process. The bottleneck has likely moved to disk access, network access or memory access. You could also have a situation where your threads are competing for locks.

    Only you know exactly what your threads are doing, so you need to look at them with the above in mind.

提交回复
热议问题