public class NativeThread
extends java.lang.Thread
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeThread.PriorityLevel |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
_loadNative |
static int |
ENOUGH_NICE_LEVELS |
static boolean |
HAS_ENOUGH_NICE_LEVELS |
static boolean |
HAS_PLENTY_NICE_LEVELS |
static boolean |
HAS_THREE_NICE_LEVELS |
static int |
HIGH_PRIORITY
Deprecated.
|
static int |
JAVA_PRIORITY_RANGE |
static int |
LOW_PRIORITY
Deprecated.
|
static int |
MAX_PRIORITY
Deprecated.
|
static int |
MIN_PRIORITY
Deprecated.
|
static int |
NATIVE_PRIORITY_RANGE |
static int |
NORM_PRIORITY
Deprecated.
|
| Constructor and Description |
|---|
NativeThread(java.lang.Runnable r,
java.lang.String name,
int priority,
boolean dontCheckRenice)
Creates a new native (reniced) thread
|
NativeThread(java.lang.String name,
int priority,
boolean dontCheckRenice)
Creates a new native (reniced) thread
|
NativeThread(java.lang.ThreadGroup g,
java.lang.Runnable r,
java.lang.String name,
int priority,
boolean dontCheckRenice)
Creates a new native (reniced) thread
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNativePriority() |
java.lang.String |
getNormalizedName() |
static java.lang.String |
normalizeName(java.lang.String name) |
void |
realRun() |
void |
run() |
static boolean |
usingNativeCode() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static final boolean _loadNative
public static final int JAVA_PRIORITY_RANGE
public static final int NATIVE_PRIORITY_RANGE
public static final boolean HAS_THREE_NICE_LEVELS
public static final boolean HAS_ENOUGH_NICE_LEVELS
public static final boolean HAS_PLENTY_NICE_LEVELS
public static final int ENOUGH_NICE_LEVELS
@Deprecated public static final int MIN_PRIORITY
@Deprecated public static final int LOW_PRIORITY
@Deprecated public static final int NORM_PRIORITY
@Deprecated public static final int HIGH_PRIORITY
@Deprecated public static final int MAX_PRIORITY
public NativeThread(java.lang.String name,
int priority,
boolean dontCheckRenice)
name - priority - dontCheckRenice - This should be set to true
unless the caller is running at NATIVE_PRIORITY_BASE @see bug6623public NativeThread(java.lang.Runnable r,
java.lang.String name,
int priority,
boolean dontCheckRenice)
name - priority - dontCheckRenice - This should be set to true
unless the caller is running at NATIVE_PRIORITY_BASE @see bug6623public NativeThread(java.lang.ThreadGroup g,
java.lang.Runnable r,
java.lang.String name,
int priority,
boolean dontCheckRenice)
name - priority - dontCheckRenice - This should be set to true
unless the caller is running at NATIVE_PRIORITY_BASE @see bug6623public final void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void realRun()
public int getNativePriority()
public static boolean usingNativeCode()
public static java.lang.String normalizeName(java.lang.String name)
public java.lang.String getNormalizedName()