Description
My outline will be:
- What does it mean to run code in parallel in Python? How does it differ from concurrency? Can they be applied at the some time?
- GIL and why it complicates parallelism in Python (CPython), but only to some extent.
- Difference between a thread and a process from the OS point of view.
- When parallelism in Python is useful and when to avoid it.
- Description of how to achieve parallel execution in CPython and how to do it properly.
- Possible traps when using parallel programming in Python.
- What happens if the code runs both in parallel and asynchronously?
- Is it really beneficial?
- How such execution can be achieved?
As the outline shows I will focus on the parallel part as it is an important topic in our current time of multicore processors and multiprocessor systems.
The topic has been discussed a lot of times but mainly from the scientific point of view, where it's been used for speeding up calulcations time. I will not go into these use cases (e.g. using MPI) but rather discuss it from web development point of view (e.g. multi worker applications).