Chapter 2. Thread-based Parallelism
In this chapter, we will cover the following recipes:
- How to use the Python threading module
- How to define a thread
- How to determine the current thread
- How to use a thread in a subclass
- Thread synchronization with Lock and RLock
- Thread synchronization with semaphores
- Thread synchronization with a condition
- Thread synchronization with an event
- How to use the
withstatement - Thread communication using a queue
- Evaluating the performance of multithread applications
- The criticality of multithreaded programming
You have been reading a chapter from
Python Parallel Programming Cookbook
Published in:
Aug 2015
Publisher:
ISBN-13:
9781785289583
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime