EECS3221_CHAPTER 6

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

1/15

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:57 AM on 4/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

16 Terms

1
New cards

What is a race condition?

It is when the outcome depends on the order of execution.

2
New cards

What is a critical section?

It is the part of the code that uses shared data.

3
New cards

What does mutual exclusion mean?

It means only one process or thread can enter at a time.

4
New cards

What does progress mean?

It means that if the system can move forward, someone must move forward.

5
New cards

What does bounded waiting mean?

It means no one should have to wait forever.

6
New cards

What is Peterson?

It is a classic theoretical solution for 2 processes.

7
New cards

What does a memory barrier do?

It prevents dangerous memory reorderings.

8
New cards

What does test-and-set do?

It is an atomic instruction used for locking.

9
New cards

What does compare-and-swap do?

It compares a value and changes it atomically.

10
New cards

What is a mutex?

It is a simple lock. It Protects a critical section by first acquire() a lock then

release() the lock

11
New cards

What is a semaphore?

It is a more general synchronization mechanism.

12
New cards

What is a monitor?

It is a more organized and safer form of synchronization.

13
New cards

What are condition variables?

They are used to wait and wake up inside a monitor.

14
New cards

What is liveness?

It means the system keeps making progress.

15
New cards

What is deadlock?

Everyone gets blocked and no one moves forward.

16
New cards

What is livelock?

Everyone keeps moving or reacting, but no progress is made.