Threads and processes
Process
Spawned when starting the
parallel program and killed
when its finished
Typically communicate
using MPI in
supercomputers
Thread
Short-lived: threads are
created by forking and
destroyed by joining them
Communicate directly
through the shared memory
Serial region Serial region
Parallel for region
with 4 threads