You might want to check that you are not doing your compute intensive
task
on the event thread, as this is the thread that does the painting of
components.
I spin off a thread for my (very) compute intensive task, set its
priority low
and it works just fine on green threads.
Rob
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.
> ---------------------------
> Barnet Wagman
> [EMAIL PROTECTED]
> --------------------------
--
Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363