Download and install the native threads package, and enable it by
setting the THREADS_FLAG environment variable.
Green threads do "time-slice", just not very well ;-)
regards
[ bryce ]
Barnet Wagman wrote:
> It appear that the the linux implementation of java does not do
> time-slicing (I'm running jdk 1.1.7v1a, using the tya jit). Is that
> correct?
> If so, does anyone have any suggestions for simulating time-slicing
> (other than throwing in a lot of yields())?
> My curent problem involves writing a gui that monitors a rather
> lengthly process. I'd like to have the compute intensive method
> update a gui monitor as it proceeds. However, the compute intensive
> method seems to consume all the time - the gui doesn't even get
> repainted until the compute intensive method finishes. Raising the
> priority of the gui (and putting in a few yields()) doesn't make any
> differences.
> Any suggestions would be appreciated.