[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: select/3 call equivalent in mzscheme



On Mon, Feb 26, 2001 at 08:44:03AM +0100, Michael Sperber [Mr. Preprocessor] wrote:
> >>>>> "Noel" == Noel Welsh <noelwelsh@yahoo.com> writes:
> 
> Noel> --- "Michael Sperber [Mr. Preprocessor]" 
> >> What for?  MzScheme is multi-threaded, so the style
> >> of I/O programming is usually different from the 
> >> usual single-threaded polling in C.
> 
> Noel> Recent experiences in Java, which has the same IO
> Noel> model as Scheme (give or take), has convinced me that
> Noel> non-blocking IO is useful.  In general, the overheard
> Noel> of a thread is much more than the overhead of a select
> Noel> call,
> 
> Having said that, MzScheme's threads are not the most lightweight, and
> I sure wish that were not so.  For the purpose at hand, they're mostly
> adequate, however.
> 

Some interesting work was done on Python to produce so-called
"microthreads".  This seems to fall in line nicely with the whole
concept of coroutines, and I wonder if we might someday see
something similar in MzScheme?

-Brent