This chapter illustrates the benefits of multithreaded programming, as well as the technical details involved in using threads in your applications. The first section talks about the basics of multithreaded programming. You will learn how to create, pause, join, stop, and terminate threads. Next, the chapter illustrates thread synchronization in depth. You will learn why you need to synchronize threads and the various methods of doing so. Finally, you will see examples of the use of the thread pool class. You will learn how to create worker threads and post work items to a thread pool.
WHAT YOU NEED
MULTITHREADED PROGRAMMING AT A GLANCE