In the previous chapter, we looked in depth at the concepts of concurrency and parallelism as well as some of the key issues we face in multithreaded Python applications. Now it's time to look at how we can start working with threads and manipulate them to our will.
In this chapter, we'll be diving into the life of a thread. We'll cover various topics such as:
- The different states a thread can be in
- Different types of threads - Windows vs POSIX
- The best practices when it comes to starting your own threads
- How we can make our lives easier when it comes to working with loads of threads
- Finally, we'll be looking at how we can end threads and the various multithreading models out there