[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] non-blocking (read)
From: |
Daishi Kato |
Subject: |
Re: [Chicken-users] non-blocking (read) |
Date: |
Tue, 19 Jul 2005 10:46:10 +0900 |
User-agent: |
Wanderlust/2.15.1 (Almost Unreal) Emacs/21.4 Mule/5.0 (SAKAKI) |
For example, an application would be a server program
that is controlable by a user through some kind of commands.
In other words, a server program with CUI.
Currently I could do it by csi, since it does not block the server thread,
but what if I would like to compile it into a single executable?
Would char-ready? help?
Thanks,
Daishi
At Sun, 17 Jul 2005 09:01:48 +0200,
felix winkelmann wrote:
>
> On 7/15/05, Daishi Kato <address@hidden> wrote:
> > Hi,
> >
> > How could I make the standard (read) non-blocking?
> >
>
> Sorry, but currently I/O from stdio and files is fully blocking.
> The reason why the REPL doesn't seem to block is due to a clever
> hack (originally by Chris Double) that performs a select(2) before
> actually reading an expression. Doing the same for every input would
> be too much and would slow down I/O unnecessarily (and Chicken's
> I/O isn't particularly fast in the first place).
>
> Do you have a particular application in mind? Perhaps we can find
> a workaround.
>
>
> cheers,
> felix
- [Chicken-users] non-blocking (read), Daishi Kato, 2005/07/15
- Re: [Chicken-users] non-blocking (read), felix winkelmann, 2005/07/17
- Re: [Chicken-users] non-blocking (read),
Daishi Kato <=
- Re: [Chicken-users] non-blocking (read), felix winkelmann, 2005/07/19
- Re: [Chicken-users] non-blocking (read), Daishi Kato, 2005/07/19
- Re: [Chicken-users] non-blocking (read), Thomas Chust, 2005/07/19
- Re: [Chicken-users] non-blocking (read), felix winkelmann, 2005/07/20
- Re: [Chicken-users] non-blocking (read), Daishi Kato, 2005/07/20
- Re: [Chicken-users] non-blocking (read), Daishi Kato, 2005/07/20