Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Shannon Barber

Changing thread priority on linux

This topic is 5425 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!