1/11
Looks like no tags are added yet.
What is implicit parallelism?
The programmer does not specify it, and the compiler and runtime find and apply it automatically
Why is implicit parallelism hard?
It needs complex dependency analysis, and complete automatic parallelization is rarely achieved
What is explicit parallelism?
The programmer states the parallel structure using language constructs, compiler directives (OpenMP) or libraries (Pthreads, MPI)
What is a RAW dependency?
Read after write: Y needs the value X wrote
What is a WAR dependency?
Write after read: Y must not overwrite a variable before X has read it
What is a WAW dependency?
Write after write: the order decides the final value
Why do dependencies connect to data races?
Each involves a write to the same variable, so wrong order or overlap gives a race, and two reads never form a dependency
What is the shared address space model?
Threads with private and shared variables that communicate by reading and writing shared memory, coordinated with locks
What is the message-passing model?
Independent processes with private memory that communicate through explicit send and receive (MPI)
Why does message passing need send and receive?
Each process has its own private address space, so the only way to share data is to send it
What is a deadlock in message passing?
Both processes do a blocking send before receive and each waits on the other forever, fixed by reordering one side
What is the data-parallel model?
One sequential flow applies an operation across a whole data structure: map a function over the elements, then reduce them to one result