Program Priority get

I have my project running with number of modules & features, I want to get priority of process/program at different places in my program.

Actually, Some process is changing my process priority so my not getting my program on expected priority what I set, So now I am willing to fetch priority at dfferent places…

Please help me out to do this… I tried with sched_param but unable to fetch… (*This is not thread, just want to place fetch priority at diffrent places so that can observe when ,my process/program priority is getting modified)

Please help me out…

Lalit Kumar

Every thread in your process has a priority. They may be different, and they may be the same. What would it mean to have a process with a priority, but all the threads at a different priority?