Threads and processes (Oct 2021 webinar)
Want to do more than one thing at a time? Python offers both threads and processes. In this recording of a webinar from 2021, I’ll walk you through various techniques for concurrency in Python
What you should know
Course Content
Course length
3.5 hours
Number of lessons
1
Training materials
1 Jupyter notebook
Coding exercises
5
About the Course
Long ago, computers could do only one thing at a time. But nowadays, we expect to ask our computer to do many things in parallel. To do this, programmers can typically choose between two main options — threads and processes.
Python provides support for both threads and processes. But using them can be tricky, difficult, and a bit strange — thanks to a combination of Python syntax, limitations on what we can do with threads and processes, and the infamous GIL (global interpreter lock), which ensures that only a single thread runs at a time.
In this four-hour course that I gave in October 2021, I showed how we can work with threads and processes in Python. Moreover, I show you when you should (and shouldn’t) use these techniques, how to weigh them against one another, and some tips and tricks for using them effectively.
Whether you’re new to threads and processes, have experience with them in another language and want to use them in Python, or want to have a better understanding of how Python allows us to work with them, this course will give you lots of understanding and tools.
What you’ll learn
- Threads vs. processes
- Python’s GIL
- Creating threads
- Passing data to and from threads
- Locking
- concurrent.futures
- ThreadPoolExecutor
- Using “map”
- Multiprocessing
- ProcessPoolExecutor
Instructor
This course, like all others on LernerPython.com, is taught by Reuven Lerner.
Pricing
100% Money Back Guarantee
I’m a one-person company dedicatedto improving your career via Python and related technologies. If you haven’t gotten value from any of my courses, then just tell me — and I’ll refund your money.
LernerPython
$40
per user / month
- Unlimited access to all Python, Git, Regexp courses
- Members-only forums
- Python office hours, private lectures
LernerPython + Data
$50
per user / month
- Everything in Lerner Python Level
- Unlimited access to NumPy, Pandas, and SQL courses
- Pandas office hours and private lectures
- Bamboo Weekly Subscription ($100 Annual Value)
LernerPython
$400
per user / year
- Unlimited access to all Python, Git, Regexp courses
- Members-only forums
- Python office hours, private lectures
LernerPython + Data
$500
per user / year
- Everything in Lerner Python Level
- Unlimited access to NumPy, Pandas, and SQL courses
- Pandas office hours and private lectures
- Bamboo Weekly Subscription ($100 Annual Value)