How to control thread Priority

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2009
Posts: 6
Reputation: macla is an unknown quantity at this point 
Solved Threads: 0
macla macla is offline Offline
Newbie Poster

How to control thread Priority

 
0
  #1
Jul 28th, 2009
Hi

How to change thread Priority in linux.
Last edited by macla; Jul 28th, 2009 at 9:07 am.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 147
Reputation: Laiq Ahmed will become famous soon enough Laiq Ahmed will become famous soon enough 
Solved Threads: 20
Laiq Ahmed Laiq Ahmed is offline Offline
Junior Poster

Re: How to control thread Priority

 
1
  #2
Jul 28th, 2009
if you are using pthread then you can use the following API.

  1. int pthread_attr_setschedparam(pthread_attr_t *tattr, const struct sched_param *param);

consult google for such questions . it will show you more answers.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 225 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC