Summary
Multithreading in Visual Basic .NET is one of .NET's many powerful features. Unfortunately, this one aspect has a huge potential for misuse. I encourage you to use multithreading in your VB .NET applications when the perceived or real payoff exceeds the potential for headaches. Use multithreading sparingly.
As you learned in this chapter, you have many choices when its comes to synchronous, asynchronous, and multithreaded programming in VB .NET. Consider using the Timer control for short, lightweight synchronous tasks. Use asynchronous calls for lightweight processing, and use the ThreadPool class when you need threading. Of course, you can also use the Thread class. If you do, remember that you can reduce the number of problems with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access