On Jun 3, 1:51 am, maksim.gale... DeleteThis @gmail.com wrote:
> I have a couple of applications running with highest priority on my
> embedded linux board. I want to monitor their CPU load in real time
> and decrease the application priority using setpriority() function
> when it exceeds some theshold. I can use getloadavg() but I want to
> monitor CPU load by the particular application (something like in
> "top") but not the entire CPU load.
>
> Is it possible? Thank you in advance!
This seems an odd thing to do. Why not just drop the priority in the
first place? What is the effect you are trying to achieve? Are you
trying to tune the distribution of CPU time over long periods of time
or are you more concerned about latency?
DS