O'Reilly logo

A Programmer's Guide to C# 5.0, 4th Edition by Nick Wienholt, Eric Gunnerson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 34

image

Threading

Modern computer operating systems allow a program to have multiple threads of execution at one time. At least, they allow the appearance of having multiple things going on at the same time.1

It’s often useful to take advantage of this feature by allowing several operations to take place in parallel. This can be used to prevent a program’s user interface from becoming unresponsive while a time-consuming task is being performed, or it can be used to execute some other task while waiting for a blocking operation (an I/O, for example) to complete.

The Common Language Runtime provides two different ways to perform such operations: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required