ThreadGroup maxPriority

From: Bob Sullivan (rjs1956_at_hotmail.com)
Date: 10/30/03


Date: 30 Oct 2003 06:02:53 -0800

Running as an application the default thread group is "main" with a
priority range of 1-10. Running as an applet the applet's thread
group has a priority range of 1-4. Any threads created to run higher
than 4 are all pushed down to priority 4. The call to setMaxPriority
does not appear to have any effect- the applet thread group remains at
max priority 4.

We tried creating new thread groups with the "main" thread group as
the parent. Running as an applet it does create the thread groups with
a priority range of 1-10 and the threads created under those thread
groups have their priorities as set. However, running as an applet
this technique yields some strange results; some classes don't load
and some GUI operations fail to work. As soon as we revert back to
creating threads under the default applet thread group the strange
problems dissappear. Any thoughts?



Relevant Pages

  • console writer thread causes erratic event handling
    ... I have a swing applet in jdk 1.4 that has a number of focus listeners. ... After tracing I've discovered that most of the events are being ... assigned to the event queue thread of the applet thread group. ... contains the console writer thread and its own event queue thread. ...
    (comp.lang.java.programmer)
  • Re: focus events being received out of sequence
    ... There are 2 thread groups - applet thread group and console ... With an Applet you have the problem all the different Applets can be ... Canadian Mind Products, Roedy Green. ...
    (comp.lang.java.gui)