Chapter 14: Multi-Threaded Programming
In this chapter, you will learn about multi-threaded programming. You will learn what threads are and about background and foreground threads. Then, you will learn how to pass data into threads before you run them. You will also learn how to pause, interrupt, destroy, schedule, and cancel threads.
In this chapter, we will be covering the following topics:
- Understanding threads and threading: This section covers the life cycle of threads.
- Creating threads with and without parameters: This section provides examples of thread creation with and without parameters.
- Pausing and interrupting threads: This section covers how to pause and interrupt threads.
- Destroying and canceling threads: This section covers destroying and canceling threads.
- Scheduling threads: This section covers how to schedule threads.
- Thread synchronization and locks: This section covers how to synchronize threads, protect resources, and prevent deadlocks...