< BACKMake Note | BookmarkCONTINUE >
156135250194107072078175030179198180025031194137176049106218111004228154178111237114240138

Chapter 17. Multithreaded Programming

Chapter Topics

  • Introduction

  • Threads and Processes

  • Threads and Python

  • thread Module

  • threading Module

  • Producer-Consumer Problem and the Queue Module

In this section, we will explore the different ways you can achieve more parallelism in your code by using the multithreaded (MT) programming features found in Python. We will begin by differentiating between processes and threads in the first few of sections of this chapter. We will then introduce the notion of multithreaded programming. (Those of you already familiar with MT programming can skip directly to Section 17.3.5.) The last section of this chapter lays out some examples of how to use the threading and Queue modules to accomplish MT programming with Python.


Last updated on 9/14/2001
Core Python Programming, © 2002 Prentice Hall PTR

< BACKMake Note | BookmarkCONTINUE >

© 2002, O'Reilly & Associates, Inc.