Concurrency: Deadlock and Starvation

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/20

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts and definitions related to deadlock and starvation in operating systems.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

Deadlock

The permanent blocking of a set of processes that either compete for system resources or communicate with each other.

2
New cards

Mutual Exclusion

Only one process may use a resource at a time, according to Coffman's conditions.

3
New cards

Hold-and-Wait

A process may hold allocated resources while awaiting assignment of others.

4
New cards

No Preemption

No resource can be forcibly removed from a process holding it.

5
New cards

Circular Wait

A closed chain of processes exists where each process holds at least one resource needed by the next process in the chain.

6
New cards

Deadlock Prevention

Adopting a policy that eliminates one of the conditions necessary for deadlock.

7
New cards

Deadlock Avoidance

Making dynamic choices based on the current state of resource allocation to avoid deadlock.

8
New cards

Deadlock Detection

Attempting to detect the presence of deadlock and taking action to recover.

9
New cards

Banker’s Algorithm

A strategy for resource allocation that ensures a safe state by not granting requests that might lead to deadlock.

10
New cards

Resource Allocation Graph

A directed graph that represents the allocation of resources to processes and their requests.

11
New cards

Dining Philosophers Problem

A problem that illustrates synchronization issues in concurrent programming, where philosophers share forks.

12
New cards

Semaphore

A synchronization primitive that controls access by multiple processes to a common resource.

13
New cards

Safe State

A state where there is at least one sequence of resource allocations to processes that does not lead to deadlock.

14
New cards

Unsafe State

A state that is not safe and may lead to deadlock.

15
New cards

Starvation

A situation where a process does not get the resources it needs for execution, preventing it from progressing.

16
New cards

Reusable Resources

Resources that can be safely used by only one process at a time and are not depleted by that use.

17
New cards

Consumable Resources

Resources that can be created and destroyed, such as messages and information in I/O buffers.

18
New cards

Detection Algorithm

A method to identify deadlocked processes based on current states of resource allocation.

19
New cards

Resource Categories

Classification of resources into reusable and consumable based on their use and allocation.

20
New cards

Process Initiation Denial

A deadlock avoidance strategy where a process is not started if it might lead to deadlock.

21
New cards

Incremental Resource Request

A request for additional resources by a process that may potentially lead to deadlock.