Parallel, Dist, wbe centric computing midterm terms

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

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:02 PM on 3/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

Race condition

When the outcome of a program is determined by the uncontrollable timing of two events. For example, two threads trying to increment the same counter. Both read 0, both add 1, both write 1 back. The expected output is 2 but the final result is 1.

2
New cards

Critical section

A specific section of code that must not be executed by more than one thread at a time to prevent race conditions.

3
New cards

Critical Section syntax

#pragma omp critical <name>

4
New cards

Deadlock

A state where a set of processes are blocked becasuse each process is holding a resource and witing for another resource held be another process in the set. Nobody can more forward.

5
New cards

Process Synchronization

Coordination of the execution between multiple processes to ensure they dont interfere with each other.

6
New cards

Semaphore

A signaling mechanism used to control accesss to a common resource

7
New cards

Barrier

All threads must reach a certain point before continuation

8
New cards

Thread safety

A property of a piece of code or data structure that guarantees it will function correctly, meaning no data corruption or race conditions, when accessed by multiple threads simultaneously.

9
New cards

Amdahls law

Speedup(S) = 1 / (1-p) + p/s where p is the proportion of the program that can be made parallel and s is the speedup of that part.

10
New cards

Efficiency

Speedup/ # of processors

11
New cards

Speedup

The ratio of the time taken to solve a problem on a single processor to the time taken on n processors. T1/Tn

12
New cards

Static scheduling

Loop iterations divided into fixed-size chunks assigned to threads at the very beginning

13
New cards

Dynamic scheduling

Iterations are broken into chunks and assigned to threads on-demand during runtime. When a thread is finished with a chunk it asks for the next available chunk.

14
New cards

Guided scheduling

Designed to reduce the overhead of dynamic scheduling. Starts wiht large chunks to reduce overhead then progressively decreases the chunk size as it reaches the end of the loop.

15
New cards

Situations for each scheduling type.

Fixed is best when work per iteration is equal. Dynamic is best when work per iteration is unpredictable. Dynamic is best when work is unbalances but you want less overhead.

16
New cards

Mutex

Mutex’s are critical sections for pthreads, you lock and unlock a mutex with the critical section falling within

17
New cards

#pragma omp critical vs #pragma omp atomic

atomic is used for single operations li ++ or — while critical can be used for more complex sections

Explore top flashcards

flashcards
A&P Chapter 11: Part 1
49
Updated 351d ago
0.0(0)
flashcards
Medical Instruments
46
Updated 1214d ago
0.0(0)
flashcards
European Capitals
43
Updated 1124d ago
0.0(0)
flashcards
Exam 1
121
Updated 1148d ago
0.0(0)
flashcards
100 Verbs
70
Updated 1216d ago
0.0(0)
flashcards
A&P Chapter 11: Part 1
49
Updated 351d ago
0.0(0)
flashcards
Medical Instruments
46
Updated 1214d ago
0.0(0)
flashcards
European Capitals
43
Updated 1124d ago
0.0(0)
flashcards
Exam 1
121
Updated 1148d ago
0.0(0)
flashcards
100 Verbs
70
Updated 1216d ago
0.0(0)