Subject: Re: [linux-audio-dev] Multithreaded programming for a poll model?
From: Tim Goetze (tim_AT_quitte.de)
Date: Fri Jun 18 2004 - 02:58:13 EEST
[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
This archive was generated by hypermail 2b28 : Fri Jun 18 2004 - 03:00:36 EEST