Advertisement

Changing thread priority on linux

Started by August 12, 2003 04:51 PM
2 comments, last by Shannon Barber 21 years, 2 months ago
Can it be done? Everything I''ve tried has lead to disappointment - min & max priority both return 0, attempting to change it anyway returns an error using pthread_getschedparam et. al.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
should be able to with pthread_setschedparam

but that applies to the process''s own nice value ultimately

and in order to change nice values.... did you try it as root?
Advertisement
quote: Original post by Magmai Kai Holmlor
Can it be done?

Everything I''ve tried has lead to disappointment - min & max priority both return 0, attempting to change it anyway returns an error using pthread_getschedparam et. al.


You need to know that only RT scheduling could augmentate its priority. Otherwise you could only "slow" it down or it will fail or crash.

hope this helps
It is possible for processes run as regular users to lower priority. If you want to raise the priority, the process needs to have root priviliges.

This topic is closed to new replies.

Advertisement