equal
deleted
inserted
replaced
242 } |
242 } |
243 |
243 |
244 /** |
244 /** |
245 * The minimum priority that a thread can have. |
245 * The minimum priority that a thread can have. |
246 */ |
246 */ |
247 public final static int MIN_PRIORITY = 1; |
247 public static final int MIN_PRIORITY = 1; |
248 |
248 |
249 /** |
249 /** |
250 * The default priority that is assigned to a thread. |
250 * The default priority that is assigned to a thread. |
251 */ |
251 */ |
252 public final static int NORM_PRIORITY = 5; |
252 public static final int NORM_PRIORITY = 5; |
253 |
253 |
254 /** |
254 /** |
255 * The maximum priority that a thread can have. |
255 * The maximum priority that a thread can have. |
256 */ |
256 */ |
257 public final static int MAX_PRIORITY = 10; |
257 public static final int MAX_PRIORITY = 10; |
258 |
258 |
259 /** |
259 /** |
260 * Returns a reference to the currently executing thread object. |
260 * Returns a reference to the currently executing thread object. |
261 * |
261 * |
262 * @return the currently executing thread. |
262 * @return the currently executing thread. |
1686 } |
1686 } |
1687 ); |
1687 ); |
1688 return result.booleanValue(); |
1688 return result.booleanValue(); |
1689 } |
1689 } |
1690 |
1690 |
1691 private native static StackTraceElement[][] dumpThreads(Thread[] threads); |
1691 private static native StackTraceElement[][] dumpThreads(Thread[] threads); |
1692 private native static Thread[] getThreads(); |
1692 private static native Thread[] getThreads(); |
1693 |
1693 |
1694 /** |
1694 /** |
1695 * Returns the identifier of this Thread. The thread ID is a positive |
1695 * Returns the identifier of this Thread. The thread ID is a positive |
1696 * {@code long} number generated when this thread was created. |
1696 * {@code long} number generated when this thread was created. |
1697 * The thread ID is unique and remains unchanged during its lifetime. |
1697 * The thread ID is unique and remains unchanged during its lifetime. |