Understanding Thread Basics

To use threads effectively, there are several fundamental practices that developers must understand, such as how to start threads and put threads to sleep. Additionally, there are some obscurities involved with using threads in the .NET Compact Framework. For example, using threads with user interface controls requires special care. Also, shutting down a multithreaded .NET Compact Framework application must be done in a specific fashion, or the application will not terminate.

In this section we discuss the basics that developers must master to use threads safely and effectively on the .NET Compact Framework. We'll wrap this section up with a sample application that demonstrates all of these concepts.

Creating and Starting ...

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.