Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

examples of parallelism, concurrency, and asyncio in python

License

NotificationsYou must be signed in to change notification settings

testdrivenio/parallel-concurrent-examples-python

Repository files navigation

Speeding up CPU-bound and IO-bound operations with multiprocessing, threading, and AsyncIO

Blog post:Parallelism, Concurrency, and AsyncIO in Python - by example

Setup

  1. Fork/Clone
  2. Create and activate a virtual environment
  3. Install the dependencies

IO-bound Operation

$ python io-bound_sync.py$ python io-bound_concurrent_1.py$ python io-bound_concurrent_2.py$ python io-bound_concurrent_3.py

CPU-bound Operation

$ python cpu-bound_sync.py$ python cpu-bound_parallel_1.py$ python cpu-bound_parallel_2.py

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp