https://github.com/millionintegrals/python-concurrency-playground
Small repository of python concurrency exercises
https://github.com/millionintegrals/python-concurrency-playground
Last synced: about 1 year ago
JSON representation
Small repository of python concurrency exercises
- Host: GitHub
- URL: https://github.com/millionintegrals/python-concurrency-playground
- Owner: MillionIntegrals
- License: mit
- Created: 2018-09-23T16:24:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T15:08:39.000Z (almost 8 years ago)
- Last Synced: 2025-02-13T21:16:41.565Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Concurrency Playground
Small repository of python concurrency exercises
### Standard library concurrency toolbox
- threading
- Thread class
- Lock objects
- RLock (reentrant lock)
- Condition variable
- Semaphore
- Event objects -
This is one of the simplest mechanisms for communication between threads: one thread signals an event and other threads wait for it.
An event object manages an internal flag that can be set to true with the set() method and reset to false with the clear() method. The wait() method blocks until the flag is true.
- Barrier objects
- multiprocessing
- asyncio
### Useful links:
- https://docs.python.org/3/library/concurrency.html