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

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

    The problem is the COM object. It is STA, and I can't either have two instances running concurrently on the same process. When I create an instance for the COM class, the other becomes unusable.

    I've contacted the component developers, they're thinking what they can do for me.

    Thanks you all ;)

提交回复
热议问题