In order for the task to be concurrent we need to open the process
Two ways to open a process
The first is based on function implementation
The second is based on class implementation
The number of open processes is not infinite, so we need to introduce the concept of process pooling
1 # How the program is executed: 2 # One: Serial execution candied fruit one to 3# Two: Parallel execution go big horizontal 456 # Synchronous invocation: After submitting a task, wait in place, wait until the task is finished, and then execute the next line of code 7# Asynchronous call: After committing a task, Do not wait in situ, directly execute the next line of code, the result?
Shutdown delegates are not allowed to submit tasks to process dominant, wait=true is the meaning of join: Wait for the task to complete
Learning journey for Python---process and process pool