Re: [linux-audio-dev] Multithreaded programming for a poll model?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Multithreaded programming for a poll model?
From: Paul Davis (paul_AT_linuxaudiosystems.com)
Date: Fri Jun 18 2004 - 03:43:50 EEST


>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.

from the whitepapers that IBM did, the linux FIFO appears to be just
about the fastest IPC mechanism outside of a microkernel. i am not
sure if even futexes are actually significantly faster.

>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?

you can. it was added as an nth-round iteration of their
design. otherwise, it would be just another example of the crappy *nix
design where "waiting" is a different system call depending on what
you're waiting for.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Jun 18 2004 - 03:41:25 EEST