By the end of Session 4, you should be able to:
- explain serial execution vs process-based parallel execution
- use
multiprocessing.Processwithstart()andjoin() - use
multiprocessing.Poolfor cleaner parallel workflows - compare serial vs parallel performance on practical tasks
- Part 1
- Part 2
- Homework
- Write your own work in solutions.
- Review reference solutions only after attempting tasks yourself.
- Practice with quizzes when ready.
- Tutorial and warm-up material is included directly inside each part markdown file.
- Keep your own solutions in separate files inside
solutions/. - Use exercise-style names in
solutions/(for exampleexercise-04-01.py,exercise-04-02.py). - For homework, create
solutions/exercise-04-homework.md. - Create your files inside
solutions/as you work through each part. - Reference answers are in
session_solutions/. - Use
if __name__ == "__main__":in multiprocessing scripts. - If
requirements.txtis missing, create it and add:requests==2.32.3Pillowquizmd
- Keep all dependencies in
requirements.txt, then install with:pip install -r requirements.txt