[alsa-devel] Are ALSA io plugins implemented as threads or does ALSA use fork() ?

Stefan Schoenleitner dev.c0debabe at gmail.com
Fri Mar 19 16:20:44 CET 2010

Jaroslav Kysela wrote:
> On Fri, 19 Mar 2010, Stefan Schoenleitner wrote:
>> * Are these instances running as separate processes (i.e. fork()) or are
>> they implemented as threads ? How is this implemented internally in the
>> ALSA code ?
> No forks or threads. Both instances will run in one process with the
> audio application. The plugin code must take core how many pcm instances
> are active and send the appropriate communication file descriptors to
> application for select/poll I/O multiplexing.

Thanks for the quick answer, I have a better understanding of the plugin
concept now.


More information about the Alsa-devel mailing list