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

From: Jens M Andreasen <jens.andreasen@email-addr-hidden>
Date: Thu Jul 13 2006 - 02:55:25 EEST

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!
Received on Thu Jul 13 04:15:05 2006

This archive was generated by hypermail 2.1.8 : Thu Jul 13 2006 - 04:15:05 EEST