why I was seeing exceptions thrown across threads -- a detailed explanation

Adam Megacz gcj@lists.megacz.com
Sun Jan 20 19:20:00 GMT 2002

Tom Tromey <tromey@redhat.com> writes:
> Adam> Interesting. If it was cooperatively multitasked, did you have
> Adam> to hack GCC to insert a yield() after every instruction?

> No.  Java doesn't require preemptive multithreading (and even if it
> did, at the time we didn't care).  We task switched on mutex and
> condition variable operations, and maybe a couple other places.

Woah, so what happens if I spawn two threads and put one of them into
an infinite loop? Would the other one get starved?

  - a

More information about the Java mailing list