Python Classroom notes 22/Aug/2026

Threads, Thread pool, Concurrency and Async

  • CPU Intensive activities use multiprocessing
  • IO intensive activities: (async)
    • Calls are blocked

Lets create a simple python module which demonstrates the async

  • We are supposed to download files from internet
    • we have a python function
      python
      def download_file(url:str):
      pass
  • When we are downloding multiple files (blocking style)
for url in urls:
    download_file(url)

Async await and loop

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading