General
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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...