[REBOL] Re: Google + SOAP
From: maarten:koopmans:surfnet:nl at: 1-May-2002 11:01
Gregg Irwin wrote:
>hi Chris,
>
><< though, in general, I don't like coop multithreading too much, it usually
>complexifies otherwise simple programs enormously >>
>
>Compared to no threading at all, or compared to pre-emptive multi-threading?
>I think it can be more work to set them up, but they tend to me more robust
>because a) you have to think about how threading is going to affect your
>app, b) they're far easier to debug should things go awry, and c) they can
>help you avoid deadlocks and race conditions because you don't have critical
>sections to deal with as you would in a pre-emptive system.
>
I second this. I had to implement this and then use it for the first
time ;-)
It is good to be forced to think about your code in all possible ways.
Most of the time (IMHO) if you can't get it done with coop
multithreading, you surely are not up to
doing it preemptive. You just don't see your race conditions...
>I'm not a Java guy, so I can't speak to its multi-threading design and how
>it make hinder or help.
>
Java added non-blocking I./O in 1.4 to facilitate writing
high-performance network services.
Because it is an easier programming model etc. ;-)
--Maarten