title: Setting thread priority in Linux with Boost
body: <p>The Boost Libraries don't seem to have a device for setting a thread's priority. Would this be the best code to use on Linux or is there a better method?</p>
  
  <pre><code>boost::thread myThread( MyFunction() );
  
  struct sched_param param;
  param.sched_priority = 90;
  pthread_attr_setschedparam( myThread.native_handle(), SCHED_RR, &amp;param);
  </code></pre>
  
  <p>I don't have alot of Linux programming experience.</p>