cuongnb14 / python-concurrency

Examples for python concurrency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Concurrency

Examples for python concurrency

Setup

pip install -r requirements.txt

Task:

Download images from https://www.wallpaper.com/latest website and save to disk

  • File run_sync.py : Run task synchronous
  • File run_async_01.py : Run task use multi threading
  • File run_async_02.py : Run task use multi proccessing
  • File run_async_03.py : Run task use concurrent.futures
  • File run_async_04.py : Run task use native coroutine

About

Examples for python concurrency


Languages

Language:Python 100.0%