3/28
Part 1 of 6 · Why threadsLearn

Threads let the waits overlap

A thread is a separate line of work inside one program, sharing the program's memory. Give each thread its own page, and the waits overlap.

Predict

12 fetches of 50 ms each take 600 ms on 1 worker. About how long on 4 workers?

Pick an answer above to see the rest
Predict

Make each fetch 50 ms of pure-Python arithmetic instead. 41 of them take 2.02 s alone. How long on 8 threads?

Pick an answer above to see the rest