Re: [linux-audio-dev] thread priority question

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] thread priority question
From: Anders Torger (torger_AT_ludd.luth.se)
Date: Wed Apr 30 2003 - 20:29:56 EEST


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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Apr 30 2003 - 20:36:32 EEST