[linux-audio-dev] thread priority question

Anders Torger torger at ludd.luth.se
Wed Apr 30 13:41:01 UTC 2003


On Wednesday 30 April 2003 18.50, Steve Harris wrote:
> On Wed, Apr 30, 2003 at 11:20:40 -0500, Ben Loftis wrote:
> > Is there an equivalent to sched_setscheduler() that adjusts thread
> > priority instead of process priority?  I want my audio thread to be
> > higher priority than my drawing thread.  Both threads are part of
> > the same app (process).  Is this possible in Linux v2.5?
>
> sched_setscheduler() works on threads too.
>
> - Steve

I think the proper way is to use pthread_setschedparam(). I haven't 
tested recently, but I think this function works as expected in current 
Linux 2.4.

/Anders Torger



More information about the Linux-audio-dev mailing list