Add A Howto Page About Concurrency in Python
Offen
@ericsnowcurrently arbeitet bereits daran.
Seit 19.8.2024.
docs
- Vorherrschende Sprache
- Python
- Sterne
- 77.2k
- Forks
- 35.9k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
It would help to have a place where the various approaches to concurrency in Python are explained and compared. It would be especially useful to enumerate the most common concurrency-oriented workloads and show how to implement them using the different concurrency models.
I expect we would cover the following concurrency models:
- threads (
threadingandconcurrent.futures) - multi-processing (
multiprocessingandconcurrent.futures) - async/await
- CSP/actor model (PEP 734
interpreters) - distributed (e.g. SMP/dask)
Other related resources:
- https://github.com/faster-cpython/ideas/wiki/Tables:-Workloads
- https://github.com/faster-cpython/ideas/wiki/All-About-Python-Benchmarking
- https://github.com/ericsnowcurrently/concurrency-benchmarks
Linked PRs
- gh-123163
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.