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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights 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