Threads in Python
Explore how to implement threads in Python using the threading module. Learn to subclass Thread, handle concurrency, and create responsive threaded programs by managing thread execution and order.
We'll cover the following...
We'll cover the following...
Python has a number of different concurrency constructs such as threading, queues and multiprocessing. The threading module used to be the primary way of accomplishing concurrency. A few years ago, the multiprocessing module was added to the Python suite of standard libraries. This chapter will be focused on how to use threads and queues.