Threading vs Multiprocessing

Introduction

The information here is a simplification of information from the video threading vs multiprocessing in python (YouTube). Essentially it is notes taken from the video.

Please watch the video. It is excellent and contains very important and useful information. (It is 23 minutes long.)

Words of wisdom: Python is multi-threaded but is not simultaneously multi-threaded. Only one thread is executing at a time.

Processes

image missing

What is a process?

Threads

image missing

What is a thread?

1 Registers, Stacks, and Threads