|
Rank: Advanced Member Groups: Member
Joined: 8/29/2016 Posts: 64
|
Hi, I have multi thread application. In each thread I load some url capture the screen and save it. I found that if I run 4 threads each EO process uses about 8% of CPU. But when I do 15 threads each EO process starts to use less than 1% of CPU. When CPU is loaded only for 50%. Please check the screen http://prntscr.com/cq6r8lIt looks that all EO processes have some CPU usage and they divided between processes. And 15 threads work slower than 5 threads. Maybe something wrong with Windows configuration? Hope you can give advices why it can happen.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This can be normal. It's not that if you have more thread you will utilize your system more efficiently. You will need to work out what each thread is waiting on.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 8/29/2016 Posts: 64
|
Thank you for the answer. Is it any way to load all computer resources (CPU/RAM)? Maybe I can disable GPU or something else? For me very important to open as many WebViews as possible at the same time. I need to process many pages and it would be great if I can do it as fast as possible.
|
|
Rank: Advanced Member Groups: Member
Joined: 8/29/2016 Posts: 64
|
At the beginning, when I just started threads the CPU usage is maximum, after a while the app starts to work slower and slower. And EO processes use less than 1% of CPU each, when at the beginning it's 5-7%. Screenshot of CPU at the beginning: http://prntscr.com/cqp215
|
|
Rank: Advanced Member Groups: Member
Joined: 8/29/2016 Posts: 64
|
I am afraid that problem appears because of some issues of using .net threads. When I restart .net thread, when I create WebViews, it works again with maximum CPU usage. I am investigation it with measuring real time that takes for creating WebViews. Maybe somebody can give me ideas why it can happen?
|
|