Subject: Re: [linux-audio-dev] priority inversion & inheritance
From: Kai Vehmanen (kai.vehmanen_AT_wakkanet.fi)
Date: Fri Jul 12 2002 - 02:32:12 EEST
On Thu, 11 Jul 2002, Paul Davis wrote:
> the hard case is a common one: thread A ("audio thread";
> SCHED_FIFO/whatever) and thread B ("gui thread";
> SCHED_OTHER/whatever).
The easiest solution to this seems to be the one used in jackd: make
'A' use trylock() instead of lock(). This avoids the problem very
elegantly.
Hmm, come to think of it, this could be optimized for SMP systems by
replacing trylock() with spin_trylock()...
-- http://www.eca.cx Audio software for Linux!
This archive was generated by hypermail 2b28 : Fri Jul 12 2002 - 02:37:12 EEST