PPD Course 3

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

12 Terms

1
New cards

What is implicit parallelism?

The programmer does not specify it, and the compiler and runtime find and apply it automatically

2
New cards

Why is implicit parallelism hard?

It needs complex dependency analysis, and complete automatic parallelization is rarely achieved

3
New cards

What is explicit parallelism?

The programmer states the parallel structure using language constructs, compiler directives (OpenMP) or libraries (Pthreads, MPI)

4
New cards

What is a RAW dependency?

Read after write: Y needs the value X wrote

5
New cards

What is a WAR dependency?

Write after read: Y must not overwrite a variable before X has read it

6
New cards

What is a WAW dependency?

Write after write: the order decides the final value

7
New cards

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

8
New cards

What is the shared address space model?

Threads with private and shared variables that communicate by reading and writing shared memory, coordinated with locks

9
New cards

What is the message-passing model?

Independent processes with private memory that communicate through explicit send and receive (MPI)

10
New cards

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

11
New cards

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

12
New cards

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