fork or pthread for async I/O?

From: Ingo Wilken (Ingo.Wilken@Informatik.Uni-Oldenburg.DE)
Date: Wed Feb 02 2000 - 12:58:49 PST

  • Next message: Peter J Jones: "xscanimage and Gimp Menu Location"


    I'm currently thinking about using POSIX threads to implement asynchronous
    I/O in my backend. Most backends that currently implement asynchronous
    I/O do so by creating a pipe and fork()ing a reader process. Since this
    already requires POSIX support (pipe(), fork()), requiring pthreads for
    a backend should not be much of a problem? The backend could fall back
    to simple synchronous I/O if pthreads are not available (check at


    Source code, list archive, and docs:
    To unsubscribe: echo unsubscribe sane-devel | mail

    This archive was generated by hypermail 2b29 : Wed Feb 02 2000 - 13:18:56 PST