[244] in java-interest

home help back first fref pref prev next nref lref last post

Re: Threads vs New White Paper

daemon@ATHENA.MIT.EDU (jim frost)
Thu Jun 8 16:49:09 1995

To: Jim.Graham@Eng.Sun.COM
Cc: java-interest@java.Eng.Sun.COM, pdoane@pcnet.com
In-Reply-To: Your message of "Thu, 08 Jun 1995 12:42:01 EDT."
             <9506081942.AA15002@bendenweyr.Eng.Sun.COM> 
Date: Thu, 08 Jun 1995 16:44:39 -0400
From: jim frost <jimf@world.std.com>

|What Arthur is describing above is that the interpreter checks a flag
|to see if a higher priority thread needs to run and then does a yield()
|if necessary.  This is not the same as executing the yield() on every
|branch.  All that gets done in the typical case is a memory fetch and
|test.

For a very small additional penalty you can put in preemptive
threading too -- just put a counter on it and when it hits zero reset
it and yield.

jim frost
jimf@world.std.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post