0

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.

Edited by myk45

2
Contributors
2
Replies
26
Views
2 Years
Discussion Span
Last Post by iš_iš_iš
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.