Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 607 Bytes

File metadata and controls

34 lines (26 loc) · 607 Bytes

Python Concurrency: From Beginner To Pro

Threading basics

  • the Neuman architecture
  • the role of the OS
  • processes & threads
  • running multiple processes on a single core
  • time slicing / scheduling
  • concurrency vs parallelism
  • I/O vs CPU bound tasks
  • threading.Thread
  • the join method
  • subclassing threading.Thread
  • shared data
  • thread lifecycle

Thread data & race conditions

  • race condition
  • atomic operations
  • locking
  • threading.Lock

Deadlocks

  • deadlocks
  • lock timeout

Producer-consumer model

  • components of a producer-consumer model
  • queue.Queue
  • the join method