[linux-audio-dev] Soft Realtime Scheduling (was: Re: [gtkmm] [slightly OT] Pipes for multi-threaded apps)

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

Subject: [linux-audio-dev] Soft Realtime Scheduling (was: Re: [gtkmm] [slightly OT] Pipes for multi-threaded apps)
From: nick (nixx_AT_nixx.org.uk)
Date: Mon Jun 17 2002 - 22:32:46 EEST


On Sun, 2002-06-16 at 19:14, Paul Davis wrote:
> >I know and you did not understand my question (or I did not write it
> >clear enough). What I asked is if you made a test how good Linux handles
> >multitasking when there are many threads that want to get 100% of CPU.
>
> if they run SCHED_OTHER, then they get timesliced, and they each get a
> fair share. but read on ...
>
> threads in the SCHED_FIFO or SCHED_RR scheduling classes are *not*
> timesliced. it doesn't matter how much time or cycles the GUI thread
> takes (it uses SCHED_OTHER) because the RT thread will get the
> processor pretty much whenever it needs it.
>
> the hard part is if you have multiple SCHED_FIFO threads. thats a
> different story. if you have N threads that each want to use more than
> 1/N of the cycles and/or have hard scheduling deadlines that each one
> interferes with, then you have a set of constraints that are hard or
> impossible to satisfy. but this is an uncommon situation (though by no
> means totally rare).

So would it be desirable to run our music apps (softsynths, sequencers
etc..) as SCED_OTHER rather than SCHED_FIFO?

SCHED_FIFO is still 'high' priority, right?

regards,
Nick

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

This archive was generated by hypermail 2b28 : Mon Jun 17 2002 - 22:48:35 EEST