From: Dave Butenhof <butenhof@zko.dec.com>
Subject: Re: Q: Asynch I/O and threads?
Date: 1996/09/16 [thread overview]
Message-ID: <323D2EEF.6F59@zko.dec.com> (raw)
In-Reply-To: 87d8zrf3cv.fsf@serpentine.com
Bryan O'Sullivan wrote:
>
> David Hinz wrote:
> d> On Digital UNIX 3.2c can asynchronous I/O and threads be used
> d> together?
>
> I would expect so, but I can't imagine why anyone would want to do
> that. Part of the motivation behind providing threads under Unix is
> that it allows you not to use cruft like aio.
>
> <b
Actually, Bryan, I can think of one reason to use async I/O with
threads. Just as threads are cheaper than processes, async I/O is
cheaper (in theory) than threads. That is, each async I/O context
includes less information, and can be manipulated more efficiently.
On the other hand, this is relevant only when you're doing a LOT of
concurrent I/Os, and you have real reason to expect them to be able to
proceed in parallel, and those parallel async I/Os can be handled in
series by a substantially smaller number of threads. (Some high
performance database engines, for example, use async I/O to help spread
disk accesses across striped spindles -- it takes a lot of smarts to do
this well, though.)
Anyway, the CAN be used together, and if you're having trouble, Dave,
you'll need to give more specific information for anyone to help you.
/---[ Dave Butenhof ]-----------------------[ butenhof@zko.dec.com ]---\
| Digital Equipment Corporation 110 Spit Brook Rd ZKO2-3/Q18 |
| 603.881.2218, FAX 603.881.0120 Nashua NH 03062-2698 |
\-----------------[ Better Living Through Concurrency ]----------------/
next prev parent reply other threads:[~1996-09-16 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-11 4:00 Q: Asynch I/O and threads? David Hinz
1996-09-12 4:00 ` Bryan O'Sullivan
1996-09-16 4:00 ` Dave Butenhof [this message]
1996-09-13 4:00 ` Steffen Ullrich
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox