EasyEnv
Engineering/Courses/Catalog/Python/Concurrency: Threads and Async
Python
BeginnerLesson 17 of 1940 min · hands-on

Concurrency: Threads and Async

Part of the Python course

Welcome back. So far our programs have done one thing at a time, top to bottom, and that has worked fine. The trouble starts when a program spends most of its time waiting (for a website to answer, for a file to load, for a database to reply). All that waiting is wasted, and concurrency is how we put it to work by handling several waits at once.

Open main.py in the editor. It is short. Click the play button and you should see something like ...

Want to learn Python Concurrency: Threads and Async in a real environment?

Click below, get a fresh Linux box with Python ready to go, and work through Concurrency: Threads and Async hands-on with an AI tutor that knows your code.

Start this lessonConcurrency: Threads and Async

What you'll learn

  • GIL in plain language
  • Concurrent.futures.ThreadPoolExecutor
  • Asyncio basics
  • Async def
  • Await
  • When to use threads vs async

Read this lesson in your language

All lessons in this course

19 lessons
  1. 1Hello, Python20 min
  2. 2Numbers and Strings25 min
  3. 3Asking the User a Question15 min
  4. 4Control Flow30 min
  5. 5Lists and Tuples30 min
  6. 6Dictionaries and Sets30 min
  7. 7Functions30 min
  8. 8Comprehensions25 min
  9. 9Files and IO30 min
  10. 10Modules and Packages30 min
  11. 11Classes and OOP35 min
  12. 12Inheritance and Composition30 min
  13. 13Exception Handling30 min
  14. 14Iterators and Generators30 min
  15. 15Decorators30 min
  16. 16Context Managers25 min
  17. 17Concurrency: Threads and Async40 min
  18. 18Testing with pytest35 min
  19. 19Packaging and Deployment35 min

Explore other courses

Concurrency: Threads and Async - Python (English) | Engineering Courses