Add A Howto Page About Concurrency in Python
Aperta
@ericsnowcurrently ci sta già lavorando.
Dal 19/8/2024.
docs
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 35.9k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.