[linux-audio-dev] Multithreaded programming for a poll model?
Tim Goetze
tim at quitte.de
Thu Jun 17 23:58:13 UTC 2004
[Paul Davis]
[...]
>currently, i use FIFO's, and i plan to switch to futexes when
>they become available. NPTL uses futexes to implement condition
>variables, but linuxthreads uses signals.
pipe()s here too. last time i benchmarked on an early 2.4 kernel, pipe
and socketpair gave about the same timing figures, quicker than
msgsnd/rcv. i don't remember the exact numbers but i remember being
positively surprised.
giving you an fd, both pipe and socketpair can be operated on within a
poll() loop, which is quite handy sometimes. don't know if futexes
will do that?
tim
More information about the Linux-audio-dev
mailing list