A common piece of feedback of workshop participants is that they would have liked more explanation on threads vs. multiprocessing.
Let's create a new chapter on threading vs. multiprocessing and extend the material.
Some ideas
[ ] Exercise/example where multiprocessing gives speedup
[ ] Example where threading is faster
[ ] Exercise with multiprocessing.map: Make an exercise where we ask participants to perform a map operation with multiprocessing. The exercise will include a python object that is non-serializable (perhaps a hdf5 file handle). This will hopefully show participants what it means to not have shared memory space.
[ ] Picture explaining GIL
[ ] Picture explaining multiprocessing vs threading?
A common piece of feedback of workshop participants is that they would have liked more explanation on threads vs. multiprocessing.
Let's create a new chapter on threading vs. multiprocessing and extend the material.
Some ideas
multiprocessing.map
: Make an exercise where we ask participants to perform amap
operation with multiprocessing. The exercise will include a python object that is non-serializable (perhaps a hdf5 file handle). This will hopefully show participants what it means to not have shared memory space.