GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - testdrivenio/parallel-concurrent-examples-python: examples of parallelism, concurrency, and asyncio in python

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cpu-bound_parallel_1.py
cpu-bound_parallel_1.py
 
 
cpu-bound_parallel_2.py
cpu-bound_parallel_2.py
 
 
cpu-bound_sync.py
cpu-bound_sync.py
 
 
io-bound_concurrent_1.py
io-bound_concurrent_1.py
 
 
io-bound_concurrent_2.py
io-bound_concurrent_2.py
 
 
io-bound_concurrent_3.py
io-bound_concurrent_3.py
 
 
io-bound_sync.py
io-bound_sync.py
 
 
requirements.txt
requirements.txt
 
 
tasks.py
tasks.py
 
 

Repository files navigation

Parallelism, Concurrency, and AsyncIO in Python - by example

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

About

examples of parallelism, concurrency, and asyncio in python

Topics

pythonpython-asynciopython-concurrencypython-multiprocessingpython-parallel-processingpython-parallelismpython-threading

Resources

Readme
MIT license
Activity
Custom properties

Stars

31 stars

Watchers

3 watching

Forks

15 forks
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.