diff options
| author | Sascha Brawer <brawer@dandelis.ch> | 2002-03-20 14:24:17 +0000 |
|---|---|---|
| committer | Sascha Brawer <brawer@dandelis.ch> | 2002-03-20 14:24:17 +0000 |
| commit | cb6c433ecc1d0437abaed82a47e6cd14c2bf4243 (patch) | |
| tree | 02bc0c8478314a3b2a522b8b743d36f5266e451c /vm/reference/java | |
| parent | 1e8852dc2fa4670322e6c03ba10936c4abf891c4 (diff) | |
| download | classpath-cb6c433ecc1d0437abaed82a47e6cd14c2bf4243.tar.gz | |
MIN_PRIORITY, MAX_PRIORITY, NORM_PRIORITY: Match values given by Sun J2SE 1.4 Javadoc.
----------------------------------------------------------------------
Diffstat (limited to 'vm/reference/java')
| -rw-r--r-- | vm/reference/java/lang/Thread.java | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/vm/reference/java/lang/Thread.java b/vm/reference/java/lang/Thread.java index d3c443ae1..b490d8840 100644 --- a/vm/reference/java/lang/Thread.java +++ b/vm/reference/java/lang/Thread.java @@ -78,20 +78,22 @@ public class Thread implements Runnable { private ClassLoader contextClassLoader = ClassLoader.getSystemClassLoader(); - /** The maximum priority for a Thread. - ** @XXX find out the value for this. - **/ - public static final int MAX_PRIORITY = 100; + /** + * The maximum priority for a Thread. + */ + public static final int MAX_PRIORITY = 10; - /** The priority a Thread gets by default. - ** @XXX find out the value for this. - **/ - public static final int NORM_PRIORITY = 50; - /** The minimum priority for a Thread. - ** @XXX find out the value for this. - **/ - public static final int MIN_PRIORITY = 0; + /** + * The priority a Thread gets by default. + */ + public static final int NORM_PRIORITY = 5; + + + /** + * The minimum priority for a Thread. + */ + public static final int MIN_PRIORITY = 1; static int numAnonymousThreadsCreated = 0; |
