The Thread Class

The System.Threading.Thread class encapsulates all of the functionality threads offered on the Windows CE device that can be accessed with the .NET Compact Framework. Table 4.1 shows the methods and properties available in the Thread class on the .NET Compact Framework.

THREADING LIMITATIONS ON THE .NET COMPACT FRAMEWORK

The threading support available in the .NET Compact Framework is much less deep than that available on the desktop. It is important to pay attention to which overloads and classes are available.


Table 4.1. The Thread Class
METHOD/PROPERTY NAMEDESCRIPTION
ThreadConstructor
PriorityGets or sets the thread's priority
void StartStarts a newly created or stopped thread; see “Creating and Starting a Thread” section
void Sleep(int sleepTime)Suspends thread execution for at least sleepTime milliseconds, passing CPU control to other threads
static Thread CurrentThreadReturns the Thread object currently running

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.210.205