ThreadGroup maxPriority

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Sullivan

    ThreadGroup maxPriority

    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?
Working...