AI engineering glossary · Computing foundations

What is multiprocessing?

Multiprocessing: Running work in several separate processes, each with its own memory, so that computation can use multiple CPU cores at the same time. It avoids sharing problems between threads but has more overhead to start and to pass data between processes.

Level: intermediateTopic: Computing foundations

Multiprocessing: an example

Using Python's multiprocessing Pool with 4 workers can process 4 image folders on 4 cores at once.

Related terms

More Computing foundations terms

Where you learn it

Multiprocessing 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.