JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the Thread Class

The Thread class supports threads in Visual Basic. Here is the inheritance hierarchy for this class:

Object
   Thread

You can find the notable public properties of Thread objects in Table 24.10 and their notable public methods in Table 24.11. (This class has no non-inherited events.)

Table 24.10: Noteworthy public properties of Thread objects.

Property

Means

IsAlive

Indicates if the thread has been started and is alive.

IsBackground

Gets/sets whether or not this is a background thread.

Name

Gets/sets the thread's name.

Priority

Gets/sets the thread's priority.

ThreadState

Gets the thread's state.

Table 24.11: Noteworthy public methods of Thread objects.

Method

Means

Abort

Aborts the thread.

Interrupt

Interrupts threads in the WaitSleepJoin state.

Join

Waits for a thread to complete.

Resume

Resumes thread execution for threads that have been suspended.

Start

Begins execution of the thread.

Suspend

Suspends thread execution.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor