Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

CPU Usage not improved

yingemmachen
Beginner
335 Views
Hi,

I used parallel_for in my visual c++ program. When I ran the program, the windows task manager showed that the total threads increased while the CPU usage did not change much (still about 15%).

Do you have any suggestion why this happens? My pc has intel core i7 CPU.

thanks,

Ying
0 Kudos
4 Replies
TimP
Honored Contributor III
335 Views
As you are using TBB, you would probably get more expert help on that forum than here.
0 Kudos
yingemmachen
Beginner
335 Views
Thanks. I am new here. Could you please tell me what forum I should post questions about TBB?
0 Kudos
TimP
Honored Contributor III
335 Views
0 Kudos
Alexander_Agathos
335 Views
You should take a look at this example :

http://msdn.microsoft.com/en-us/library/dd728073.aspx

It is a matrix multiplication. It says that that the function to be parallelized is of crucial importance in load balancing. Make some examples of your own.

Edit : Well PPL is also a joint work with Intel. Ok. Next time it would be great specifying the version of VS you are using. Cheers.
0 Kudos
Reply