I have source code and multithreading is enabled in that code. I checked with ps -eLf command its showing number of threads list, but i think load its not distributed in all the threads.so i want to know how we can check the load is distributed in all the threads or not.
According to me complete load is going to single thread.
Actually i want to improve the performance of my code.
I am using RHEL5.4 linux OS. Programming Language is C.
if anyone knows, please let me know…..
Thanks
Run this:
You will see something like this as output:
TID is the thread id. You can see the cpu percentage of each thread.
Hope that answers your questions.