Java.Lang.Thread Members

The members of Java.Lang.Thread are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Constructs a new Thread with no Runnable object and a newly generated name.
Constructs a new Thread with a Runnable object and a newly generated name.
Documentation for this section has not yet been entered.
Constructs a new Thread with no Runnable object and the name provided.
Constructs a new Thread with a Runnable object and name provided.
Constructs a new Thread with a Runnable object and a newly generated name.
Documentation for this section has not yet been entered.
Constructs a new Thread with no Runnable object, the given name and belonging to the ThreadGroup passed as parameter.
Documentation for this section has not yet been entered.
Constructs a new Thread with a Runnable object, the given name and belonging to the ThreadGroup passed as parameter.
Documentation for this section has not yet been entered.
Constructs a new Thread with a Runnable object, the given name and belonging to the ThreadGroup passed as parameter.
Documentation for this section has not yet been entered.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
MaxPriorityint (10). The maximum priority value allowed for a thread.
const
MinPriorityint (1). The minimum priority value allowed for a thread.
const
NormPriorityint (5). The normal (default) priority value assigned to the main thread.

Public Properties

[read-only]
static
AllStackTracesIDictionary<Thread, StackTraceElement[]>. Returns a map of all the currently live threads to their stack traces.
ContextClassLoaderClassLoader. Returns the context ClassLoader for this Thread.
Daemonbool. Tests whether this is a daemon thread.
static
DefaultUncaughtExceptionHandlerThread.IUncaughtExceptionHandler. Returns the default exception handler that's executed when uncaught exception terminates a thread.
[read-only]
Idlong. Returns the thread's identifier.
[read-only]
IsAlivebool. Returns true if the receiver has already been started and still runs code (hasn't died yet).
[read-only]
IsInterruptedbool. Returns a boolean indicating whether the receiver has a pending interrupt request (true) or not ( false)
Namestring. Returns the name of the Thread.
Priorityint. Returns the priority of the Thread.
[read-only]
ThreadGroupThreadGroup. Returns the ThreadGroup to which this Thread belongs.
UncaughtExceptionHandlerThread.IUncaughtExceptionHandler. Returns the thread's uncaught exception handler.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
ActiveCount() : int
Returns the number of active Threads in the running Thread's group and its subgroups.
CheckAccess()
Does nothing.
CountStackFrames() : int
Returns the number of stack frames in this thread.
static
CurrentThread() : Thread
Returns the Thread of the caller, that is, the current Thread.
Destroy()
Throws UnsupportedOperationException.
static
DumpStack()
Prints to the standard error stream a text representation of the current stack for this Thread.
static
Enumerate(Thread[]) : int
Copies an array with all Threads which are in the same ThreadGroup as the receiver - and subgroups - into the array threads passed as parameter.
GetStackTrace() : StackTraceElement[]
Returns an array of Java.Lang.StackTraceElement representing the current thread's stack.
GetState() : Thread.State
Returns the current state of the Thread.
static
HoldsLock(Object) : bool
Indicates whether the current Thread has a monitor lock on the specified object.
Interrupt()
Posts an interrupt request to this Thread.
static
Interrupted() : bool
Returns a boolean indicating whether the current Thread ( currentThread()) has a pending interrupt request ( true) or not (false).
Join()
Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies.
Join(long)
Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies or the specified timeout expires, whatever happens first.
Join(long, int)
Blocks the current Thread (Thread.currentThread()) until the receiver finishes its execution and dies or the specified timeout expires, whatever happens first.
Resume()
Throws UnsupportedOperationException.
Run()
Calls the run() method of the Runnable object the receiver holds.
static
Sleep(long)
Causes the thread which sent this message to sleep for the given interval of time (given in milliseconds).
static
Sleep(long, int)
Causes the thread which sent this message to sleep for the given interval of time (given in milliseconds and nanoseconds).
Start()
Starts the new Thread of execution.
Stop()
Requests the receiver Thread to stop and throw ThreadDeath.
Stop(Throwable)
Throws UnsupportedOperationException.
Suspend()
Throws UnsupportedOperationException.
static
Yield()
Causes the calling Thread to yield execution time to another Thread that is ready to run.