Chapter 9. Threads

IN THIS CHAPTER

When a program becomes complex, it can happen that the program cannot be managed in one thread any more. Just think of a Web server. Many people want to retrieve data concurrently, so the Web server has to manage many different operations at a time.

In general, there are two ways to implement concurrency. One way is to use multiple processes. The kernel of the operating system makes sure that every process gets enough CPU power and I/O to get the job done. The second way is to have one process doing all the work with the help of threads.

Threads are a good choice to achieve some sort of parallelism because they're fast. This chapter is dedicated ...

Get Mono Kick Start 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.