why I was seeing exceptions thrown across threads -- a detailed explanation
Anthony Green
green@redhat.com
Mon Jan 21 16:29:00 GMT 2002
On Thu, 2002-01-17 at 13:47, Adam Megacz wrote:
> Interesting. If it was cooperatively multitasked, did you have to hack
> GCC to insert a yield() after every instruction?
No, you just make sure there are yield()s at reasonable locations. My
guess is that yielding on lock requests is good enough for most real
Java programs (there will be many opportunities considering the number
of synchronized methods in the libraries). I think that's all our coop
threads package did.
AG
More information about the Java
mailing list