AI engineering glossary · Python advanced

What is threading?

Threading: Python's threading module for running several threads in one process. Because of the interpreter lock, it speeds up input and output waiting tasks, not CPU-bound number crunching. It is simplest when threads share little mutable data.

Level: intermediateTopic: Python advanced

Threading: an example

Starting ten threads to call an API for ten different cities in a Python script so requests overlap.

Related terms

More Python advanced terms

Where you learn it

Threading is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.