Changing thread priority on linux
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.
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?
but that applies to the process''s own nice value ultimately
and in order to change nice values.... did you try it as root?
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
Popular Topics
Advertisement