This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: why I was seeing exceptions thrown across threads -- a detailedexplanation


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]