Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.42 KB

File metadata and controls

37 lines (30 loc) · 1.42 KB

Welcome to Session 6

Learning goals

By the end of Session 6, you should be able to:

  • explain why shared resources need coordination
  • use a mutex with threading.Lock
  • use a semaphore with threading.Semaphore
  • limit concurrent work in a practical I/O-style task
  • design a small parallel resource-allocation project

Recommended order

  1. Part 1
  2. Part 2
  3. Optional Mini Project
  4. Homework
  5. Write your own work in solutions.
  6. Review reference solutions only after attempting tasks yourself.
  7. Practice with quizzes when ready.

Notes

  • 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 example exercise-06-01.py, exercise-06-02.py).
  • For the optional project, create solutions/exercise-06-project.py.
  • For homework, create solutions/exercise-06-homework.md.
  • Create your files inside solutions/ as you work through each part.
  • Reference answers are in session_solutions/.
  • If requirements.txt is missing, create it and add:
    • requests==2.32.3
    • Faker
    • quizmd
  • Keep all dependencies in requirements.txt, then install with:
    • pip install -r requirements.txt