[E-Lang] multithreading
Ben Laurie
ben@algroup.co.uk
Thu, 19 Jul 2001 18:59:25 +0100
> "Jonathan S. Shapiro" wrote:
>
> In the context of the multithreading discussion, I want to point out
> that there are things that can't really be done *without* preemptive
> multithreading, and that some of them are a damned nuisance. We're
> running into a few of these in the EROS work right now.
>
> The most obvious is flow control on full-duplex streams. You have an
> input stream and an output stream, and the input stream needs to be
> able to preempt the output stream when XOFF arrives. I think it's
> worth noting that E relies on the underlying runtime to hide certain
> types of underlying asynchrony (like this one).
>
> Hmm. I was going to write a longer note, but I see that time has
> gotten away from me. Here is the challenge question: how should
> full-duplex streams be managed in E?
I don't understand why this is any harder to do in an event loop than in
a threaded system?
Cheers,
Ben.
--
http://www.apache-ssl.org/ben.html
"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff