[linux-audio-dev] realtimeness: pthread_cond_signal vs. pipe write

Jens M Andreasen jens.andreasen at chello.se
Wed Jul 12 23:55:25 UTC 2006


On Wed, 2006-07-12 at 23:43 +0200, jaromil wrote:

> > i think mostly because in 2000-2001, they were very slow.
> 
> IMHO they are still slow, especially when you port software to OSX then
> pthreads and semaphores are *very* slow (well, it depends how much and
> where you use them of course).

OSX? Although I can see your argument (of convenience), it has no
beaeing to the implementation in linux. If you say that Darwin is
lacking, then fix it or use Linux, no? 
> 
> my solution so far is assuming that boolean is atomical.
> all multi threaded handling i wrote is based on this assumption: i use
> it in pipe and linklist classes, but semaphores could also be there.
> 
> i found no probems and good speed so far
> ... and life is boring without risks :))
> 
... and sooner or later we will find an update for
multi-processors. :-D 
> ciao
     cheers!





More information about the Linux-audio-dev mailing list