This widget could not be displayed.
Operating System - Linux
1859564 Members
7229 Online
110403 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.

Re: How to change a thread's scheduling priority?

 
Tim Yeung_1
Frequent Advisor

How to change a thread's scheduling priority?

In HPUX, you can use the pthread_setschedparam() to change a thread’s scheduling priority. But when this code is used in RHELv4, I get EPERM error.

I modified /etc/security/limits.conf to get ability to change process priority, but it had no effects. How does one change a thread’s scheduling priority in Linux?

Thanks

Tim
1 REPLY 1
Stuart Browne
Honored Contributor

Re: How to change a thread's scheduling priority?

Is the sched_param structure the same between HPUX and Linux?
One long-haired git at your service...