Understanding and Applying Threads
Before we can examine how to use threads in our code, we need a crash-course in what a thread is and how threading is supported by the Windows operating system.
Microsoft Windows Threading Support
Microsoft Windows is a pre-emptive multitasking operating system. That means that the operating system, by means of a program called the task scheduler, doles out processor time to programs that are running.
All of these running programs are demanding attention from the CPU to perform their code instructions. Windows, based on a few different parameters that we will talk about later, lets a program run for a period of time (called a time slice) before interrupting it so that another program can get processor time—the ...
Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.