Pros and Cons of Threads

As you learned in Chapter 29, threads are the scheduling unit known by the Windows operating system kernel. Processes can have multiple threads which allow the process to process many of its tasks in parallel. Examples include running a message pump for a user interface (UI) thread while background threads are used for computations or I/O operations that shouldn’t block the UI.

Get C# 5.0 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.