Synchronization & Deadlock & File Systems & Links

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.

Last updated 11:24 AM on 3/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

12 Terms

1
New cards

What are the 4 necessary conditions for Deadlock?

  1. Mutual Exclusion (one user at a time).

  2. Hold and Wait (holding one, waiting for another).

  3. No Preemption (cannot forcibly take resources).

  4. Circular Wait (a loop of processes waiting for each other).

2
New cards

What is a Race Condition?

A situation where multiple threads/processes access shared data concurrently, and the final result depends on the timing/order of execution.

3
New cards

How do Semaphores work (wait and signal)?

  • wait() (P): Decrements the semaphore; if value < 0, the process blocks.

  • signal() (V): Increments the semaphore; if others are waiting, one is woken up.

4
New cards

What is the difference between a Hard Link and a Soft (Symbolic) Link?

  • Hard Link: A direct pointer to the file's inode. If the original filename is deleted, the data remains accessible via the hard link.

  • Soft Link: A pointer to the path of the file. If the original file is deleted, the soft link becomes "dangling" or broken.

5
New cards

If you run ln file1 file2 and then rm file1, can you still read the data from file2?

Yes. ln creates a hard link; the data is only deleted when the last link to the inode is removed.

6
New cards

State Amdahl’s Law.

<p></p>
7
New cards

What does test_and_set do?

Atomically sets a lock and returns its old value.

8
New cards

What problem does compare_and_swap solve?

Prevents race conditions when updating shared variables.

9
New cards

What is SRTF scheduling?

Preemptive version of Shortest Job First.

10
New cards

Can race conditions occur on a single-core CPU?

Yes — due to context switching.

11
New cards

What is the purpose of semaphores in producer–consumer?

Ensure mutual exclusion and track buffer availability.

12
New cards

What does chmod 655 mean?

Owner: rw-, Group: r-x, Others: r-x.

Explore top notes

note
Forensics Study Guide Unit 1
Updated 1271d ago
0.0(0)
note
Chapter 19 - Types of Selection
Updated 1307d ago
0.0(0)
note
EARTHSCI REVIEWER FINALS
Updated 801d ago
0.0(0)
note
Histology
Updated 1271d ago
0.0(0)
note
Chapter 37: Domestic Poisons
Updated 1087d ago
0.0(0)
note
LKWB 1.2
Updated 66d ago
0.0(0)
note
Forensics Study Guide Unit 1
Updated 1271d ago
0.0(0)
note
Chapter 19 - Types of Selection
Updated 1307d ago
0.0(0)
note
EARTHSCI REVIEWER FINALS
Updated 801d ago
0.0(0)
note
Histology
Updated 1271d ago
0.0(0)
note
Chapter 37: Domestic Poisons
Updated 1087d ago
0.0(0)
note
LKWB 1.2
Updated 66d ago
0.0(0)

Explore top flashcards

flashcards
Chapter 1 MC
23
Updated 171d ago
0.0(0)
flashcards
WWII
46
Updated 1118d ago
0.0(0)
flashcards
Spanish Semester I Final
83
Updated 799d ago
0.0(0)
flashcards
T2C - Week One Vocab
21
Updated 1087d ago
0.0(0)
flashcards
Geometry Review Flashcards
119
Updated 212d ago
0.0(0)
flashcards
Body Systems
32
Updated 53d ago
0.0(0)
flashcards
vocab
60
Updated 1067d ago
0.0(0)
flashcards
disc golf
32
Updated 1214d ago
0.0(0)
flashcards
Chapter 1 MC
23
Updated 171d ago
0.0(0)
flashcards
WWII
46
Updated 1118d ago
0.0(0)
flashcards
Spanish Semester I Final
83
Updated 799d ago
0.0(0)
flashcards
T2C - Week One Vocab
21
Updated 1087d ago
0.0(0)
flashcards
Geometry Review Flashcards
119
Updated 212d ago
0.0(0)
flashcards
Body Systems
32
Updated 53d ago
0.0(0)
flashcards
vocab
60
Updated 1067d ago
0.0(0)
flashcards
disc golf
32
Updated 1214d ago
0.0(0)