Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

The Producer-Consumer Pipeline: Part 1

Give Feedback

In this course, you’re going to write a producer-consumer pipeline. To understand what a producer-consumer pipeline is, image a conveyor belt. On the left you have a producer, and on the right you have a consumer. The producer is going to produce some piece of data and is going to put it on the conveyor belt. When the consumer receives this data, it will do something with it.

Alvaro Formoso on April 2, 2020

Thank you for this useful course, Lee! One question I had after seeing all this videos, is if I am able to use ThreadPools outside if name == ‘main‘ module.

For example, in a method of a class to make (for example) 3 or 4 read_sql querys faster.

Thanks!

Become a Member to join the conversation.