Heavyweight Threading

Thus far all the examples could have been accomplished by creating an instance or instances of the Thread class and managing the thread directly. It is easiest to implement asynchronous behavior using the Timer control and the Application.Idle event, and easier to use threads in the thread pool. Using Thread objects is not significantly more difficult, but you do have to actively manage the threaded behavior and the thread objects. When you're writing code for money, the more difficult something is, the more it will cost. Unfortunately, that extra cost is seldom linear.

Creating and Using Threads

The basic steps for using the Thread class are an expansion of using the thread pool. The mechanics of using the Thread class ...

Get Visual Basic® .NET Unleashed 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.