[linux-audio-dev] realtimeness: pthread_cond_signal vs. pipe write
jaromil
jaromil at dyne.org
Wed Jul 12 21:43:37 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Jul 11, 2006 at 05:10:27PM -0400, Paul Davis wrote:
> On Tue, 2006-07-11 at 17:06 -0400, Dave Robillard wrote:
> > Semaphores seem about perfect for this to me.. am I missing something?
> > Why doesn't anyone ever recommend them?
>
> 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).
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 :))
ciao
- --
jaromil, dyne.org rasta coder, http://rastasoft.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFEtW0Je2QxhLU0C14RAgoFAJ46wjWQ1TQcuisiWAGlNUe/r+4q0wCeKbhc
1LwvuKrz6u5FrljSDS6J4F0=
=RTwn
-----END PGP SIGNATURE-----
More information about the Linux-audio-dev
mailing list