From: Eijiro Sumii <eijiro_sumii@anet.ne.jp>
To: caml-list@inria.fr
Cc: sumii@saul.cis.upenn.edu
Subject: Re: [Caml-list] select (or polling) on in_channel?
Date: Tue, 05 Apr 2005 09:34:39 -0400 (EDT) [thread overview]
Message-ID: <20050405.093439.68549116.eijiro_sumii@anet.ne.jp> (raw)
In-Reply-To: <425226CF.80708@barettadeit.com>
From: "Alex Baretta" <alex@barettadeit.com>
> My impression is that select and buffered IO are concepts that do
> not live well together.
Actually, I don't quite think so - buffering can often be regarded an
optimization and select could be implemented just by checking the
buffer in advance (as others have suggested). I also suppose there is
at least some kind of buffering even inside UNIX OS kernels with a
"select" (or "poll" in Solaris) system call.
> I would attempt to model the problem in a multithreaded paradigm, where
> the the "selecting" is implicit in the thread scheduling mechanism.
I rather want to avoid multi-threading if select could be easy enough,
because the former is often too tricky due to the possibility of
deadlocks and races.
Eijiro
next prev parent reply other threads:[~2005-04-05 13:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-31 23:28 Eijiro Sumii
2005-04-01 10:59 ` [Caml-list] " Gerd Stolpmann
2005-04-01 13:37 ` Eijiro Sumii
2005-04-03 14:43 ` Christoph Bauer
2005-04-04 20:24 ` Eijiro Sumii
2005-04-04 21:29 ` Eijiro Sumii
2005-04-05 5:49 ` Alex Baretta
2005-04-05 13:34 ` Eijiro Sumii [this message]
2005-04-05 14:14 ` Alex Baretta
2005-04-05 18:07 ` Eijiro Sumii
2005-04-05 14:30 ` Richard Jones
2005-04-05 18:12 ` Eijiro Sumii
2005-04-05 7:00 sejourne kevin
2005-04-05 13:39 ` Eijiro Sumii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050405.093439.68549116.eijiro_sumii@anet.ne.jp \
--to=eijiro_sumii@anet.ne.jp \
--cc=caml-list@inria.fr \
--cc=sumii@saul.cis.upenn.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox