Python Concurrency

Upcoming Events

Topic: Python Concurrency

Here is the entire zip file of the python programs used in this presentation

python basics

for i in range(5):
    stuff

Concurrency

Python has some oddities

Threading in Python specifically

Blocking and non-blocking

Sharing memory

Semaphore

self.lock = threading.lock



s.lock.aquire()
stuff
s.lock.release()

This doesnt sound good. when would you use threads

Daemon threads

Multiprocessing

In python threading is different than multiprocessing

Asyncio