Summary
Summarize the concept explored in this chapter regarding concurrency in Python.
Recall
We’ve looked closely at a variety of topics related to concurrent processing in Python:
- Threads have an advantage of simplicity for many cases. This has to be balanced against the GIL interfering with compute-intensive multi-threading.
- Multiprocessing has an advantage of making full use of all cores of a processor. This has to be balanced against interprocess communication costs. If shared memory is used, there is the