Hi All,

I am trying some experiments with pthread scheduling policies. I have a couple of apps and within all these apps, I set the thread policy to SCHED_RR and I set the priority to MAX - 1. Now, I see that the CPU utilization as reported by top for one process goes to about 100%. However, the other apps don't have the same behavior.

Question:
Doesn't setting SCHED_RR as the scheduling policy ensure that all threads get equal quanta of CPU cycles? If yes, why is top reporting these numbers as high for one process?

More info:
1. I'm using an embedded Linux enviroment.
2. I'm having 4 physical CPU cores on the target environment.

bump :-)

I am not happy when it comes to those threads int C++ 11.
It looks like something is missing!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.