Operating System test 2 Chatper 8 (chapter 5 of the essentials textbook)

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

1/25

flashcard set

Earn XP

Description and Tags

test 2 Chatper 8 (chapter 5 of the essentials textbook)

Last updated 5:45 PM on 4/3/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

Deadlock Characterization

state where a set of processes are permanently blocked because each holds a resource while waiting for another held by a different process. There are 4, Mutual Exclusion, Hold and wait, No preemption, and Circular Wait.

2
New cards

mutual exclusion

only one process at a time can use a
resource

3
New cards

Hold and wait

a process holding at least one resource is
waiting to acquire additional resources held by other
processes

4
New cards

No preemption

a resource can be released only voluntarily
by the process holding it, after that process has completed its
task

5
New cards

Circular wait

there exists a set {P0, P1, ..., Pn} of waiting processes such that P0 is waiting for a resource that is held by P1, P1 is waiting for a resource that is held by P2, ..., Pn–1 is waiting for a resource that is held by Pn, and Pn is waiting for a resource that is held by P0.

6
New cards

Resource-Allocation Graph

a directed graph used in operating systems to visualize and detect deadlocks by representing the state of processes and resources

*A set of vertices V and a set of edges E.

7
New cards

If graph contains no cycles

no deadlock

8
New cards

If graph contains a cycle

deadlock

9
New cards

if only one instance per resource type

then deadlock

10
New cards

if several instances per resource type

possibility of deadlock

11
New cards

Deadlock Prevention

designing systems to eliminate at least one of the four necessary conditions for deadlocks (Mutual Exclusion, Hold and Wait, No Preemption, or Circular Wait).

12
New cards

Mutual Exclusion

not required for sharable resources (e.g.,
read-only files); must hold for non-sharable resources

13
New cards

Hold and Wait

must guarantee that whenever a process
requests a resource, it does not hold any other resources

14
New cards

No Preemption

resources held by a process cannot be forcibly taken away; they must be released voluntarily.

15
New cards

Circular Wait

two or more processes form a circular chain where each process waits for a resource that the next process in the chain holds.

16
New cards

Bankers Algorithm

algorithm used in operating systems to manage resource allocation by simulating the allocation to check for safety

17
New cards

Available

Vector of length m. If available [j] = k, there are k
instances of resource type Rj available

18
New cards

Max

n x m matrix. If Max [i,j] = k, then process Pi may request at
most k instances of resource type Rj

19
New cards

Allocation

n x m matrix. If Allocation[i,j] = k then Pi is currently
allocated k instances of Rj

20
New cards

Need

n x m matrix. If Need[i,j] = k, then Pi may need k more
instances of Rj to complete its task

Need [i,j] = Max[i,j] – Allocation [i,j]

21
New cards

Deadlock Detection

an operating system mechanism that identifies when processes are stuck waiting for resources held by others, allowing the system to resolve the blockage

22
New cards

Available

A vector of length m indicates the number of available
resources of each type

23
New cards

Allocation

An n x m matrix defines the number of resources of each
type currently allocated to each process

24
New cards

Request

An n x m matrix indicates the current request of each
process. If Request [i][j] = k, then process Pi is requesting k more
instances of resource type Rj.

25
New cards

Recovery from Deadlock: Process Termination

breaks deadlock by killing processes to reclaim resources, acting as a direct recovery method after detection.

1. Priority of the process

2. How long process has computed, and how much longer to completion

3. Resources the process has used

4. Resources process needs to complete

5. How many processes will need to be terminated

6. Is process interactive or batch?

26
New cards

Explore top flashcards

flashcards
Semester 1 midterms science
21
Updated 108d ago
0.0(0)
flashcards
Prep Game Notes
31
Updated 435d ago
0.0(0)
flashcards
Gr 11 Bio - Evolution
54
Updated 1081d ago
0.0(0)
flashcards
SIS 342 FINAL EXAM
72
Updated 344d ago
0.0(0)
flashcards
Bio - Exam intra 1
108
Updated 550d ago
0.0(0)
flashcards
Welding Test. Airframe
35
Updated 479d ago
0.0(0)
flashcards
Semester 1 midterms science
21
Updated 108d ago
0.0(0)
flashcards
Prep Game Notes
31
Updated 435d ago
0.0(0)
flashcards
Gr 11 Bio - Evolution
54
Updated 1081d ago
0.0(0)
flashcards
SIS 342 FINAL EXAM
72
Updated 344d ago
0.0(0)
flashcards
Bio - Exam intra 1
108
Updated 550d ago
0.0(0)
flashcards
Welding Test. Airframe
35
Updated 479d ago
0.0(0)