| 
									
										
										
										
											2012-08-20 18:05:46 +10:00
										 |  |  | .. _concurrency:
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ********************
 | 
					
						
							|  |  |  | Concurrent Execution
 | 
					
						
							|  |  |  | ********************
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The modules described in this chapter provide support for concurrent
 | 
					
						
							|  |  |  | execution of code. The appropriate choice of tool will depend on the
 | 
					
						
							|  |  |  | task to be executed (CPU bound vs IO bound) and preferred style of
 | 
					
						
							|  |  |  | development (event driven cooperative multitasking vs preemptive
 | 
					
						
							| 
									
										
										
										
											2013-04-17 07:34:13 +03:00
										 |  |  | multitasking). Here's an overview:
 | 
					
						
							| 
									
										
										
										
											2012-08-20 18:05:46 +10:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .. toctree::
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    threading.rst
 | 
					
						
							|  |  |  |    multiprocessing.rst
 | 
					
						
							| 
									
										
										
										
											2019-02-23 22:08:16 -06:00
										 |  |  |    multiprocessing.shared_memory.rst
 | 
					
						
							| 
									
										
										
										
											2012-10-06 13:49:34 +02:00
										 |  |  |    concurrent.rst
 | 
					
						
							| 
									
										
										
										
											2012-08-20 18:05:46 +10:00
										 |  |  |    concurrent.futures.rst
 | 
					
						
							|  |  |  |    subprocess.rst
 | 
					
						
							|  |  |  |    sched.rst
 | 
					
						
							|  |  |  |    queue.rst
 | 
					
						
							| 
									
										
										
										
											2021-03-06 08:25:54 -08:00
										 |  |  |    contextvars.rst
 | 
					
						
							| 
									
										
										
										
											2012-08-20 18:05:46 +10:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The following are support modules for some of the above services:
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .. toctree::
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    _thread.rst
 |