>But what about "true" multitasking? In my experience, green threads
>don't do that very well.
In Java, green threads may not do multitasking at all. Java makes no
guarantees about preemptive threading - it's entirely correct for one
thread to dominate the CPU, as long as it's the highest priority.
Java makes very few guarantees at all about thread execution. If I
understand the spec right, it's even correct for Thread.yield() to do
nothing at all, although that would be pathological.
So it's good to use native threads, because you get preemptive
multitasking, but code that relies on that is non-portable.
[EMAIL PROTECTED]
. . . . . . . . http://www.media.mit.edu/~nelson/