title: How to set thread priority pthreads on Mac OS
body: <p>I've found:</p>
  
  <pre><code>pthread_setschedprio() 
  </code></pre>
  
  <p>here: <a href="http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_setschedprio.3.html" rel="nofollow">http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_setschedprio.3.html</a></p>
  
  <p>But I can't find any valid values for thread priority. For Windows I've found very clear possible value, like:</p>
  
  <pre><code>THREAD_PRIORITY_BELOW_NORMAL
  THREAD_PRIORITY_NORMAL
  THREAD_PRIORITY_ABOVE_NORMAL
  </code></pre>
  
  <p>but for Mac OS I didn't found anything. I can't use Cocoa NSThreads class, I need to use POSIX threads. </p>
  
  <p>Do you know how to set thread priority pthreads on Mac OS?</p>