Skip to main content
  • 749 Accesses

Abstract

Forking, which I discussed in Chapter 20, is a means of permitting multiple requests to be simultaneously handled. Forking works by creating two completely separate processes out of one. Python also offers another mechanism, known as threading. Threading can be looked at abstractly as having different parts of a single process execute simultaneously. You’re probably wondering why you would ever need an alternative method for managing multiple requests. This is best explained by contemplating a few scenarios that may arise when working with applications that are capable of supporting multiple processes.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2004 John Goerzen

About this chapter

Cite this chapter

Goerzen, J. (2004). Threading. In: Foundations of Python Network Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-0752-8_21

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-0752-8_21

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-59059-371-4

  • Online ISBN: 978-1-4302-0752-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics