Deadlocks

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

1/68

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

69 Terms

1
New cards

Deadlock

Occurs when threads are waiting for resources with circular dependencies.

2
New cards

Nonpreemptable resources

Resources that cannot be taken away from a current thread without failing its computation.

3
New cards

Example of Deadlock

Can occur if multiple threads hold resources and each is waiting for a resource held by another.

4
New cards

Starvation

A situation where a thread waits indefinitely for resources.

5
New cards

Deadlock and Starvation Relationship

A deadlock implies starvation.

6
New cards

Dining Philosophers Problem

A classic example of deadlock where philosophers need two chopsticks to eat.

7
New cards

Deadlock Prevention Strategy

Remove one of the four necessary conditions for a deadlock to occur.

8
New cards

Infinite resources

A deadlock prevention technique involving buying a very large disk.

9
New cards

No sharing

A technique where threads do not share resources to avoid deadlocks.

10
New cards

Resource Ordering

A technique where all threads access resources in the same order.

11
New cards

Banker’s Algorithm

An algorithm that determines if resource allocation will lead to deadlock.

12
New cards

Deadlock Detection

The process of scanning the resource allocation graph to identify circular chains of requests.

13
New cards

Rollback Action

Restoring a thread to a previous state to recover from a deadlock.

14
New cards

Semaphore

A signaling mechanism used to control access to a common resource.

15
New cards

Circular Dependency

A situation where each thread in a set is waiting for a resource held by another thread in the set.

16
New cards

Preemptable resources

Resources that can be taken from a thread without causing any failure.

17
New cards

Round-Robin Scheduling

A CPU scheduling method that does not prevent deadlocks.

18
New cards

Thread A and Thread B Example

An example where threads deadlock due to waiting for resources held by each other.

19
New cards

Chopstick Allocation

In the Dining Philosopher's problem, each philosopher must first acquire two chopsticks to eat.

20
New cards

Resource Allocation Graph

A graphical representation used for detecting deadlocks in a system.

21
New cards

Checkpointing

Taking snapshots of system states to aid in recovery from deadlocks.

22
New cards

Blocking

A condition in which threads are unable to proceed because they are waiting for resources.

23
New cards

Live Lock

A situation where threads are active but unable to make progress due to conflicting actions.

24
New cards

Thread

A sequence of programmed instructions that can be managed independently by a scheduler.

25
New cards

Resource Management

The process of efficiently allocating resources among competing threads.

26
New cards

Infinite Resources Example

Acquiring an extremely large disk to avoid resource shortages.

27
New cards

Exclusion of Waiting

A technique where a thread cannot wait indefinitely for resources.

28
New cards

Deadlock Conditions

Four conditions must hold true for a deadlock to occur: Mutual exclusion, Hold and wait, No preemption, and Circular wait.

29
New cards

Thread Prioritization

The method of assigning priority levels to threads to manage resource allocation effectively.

30
New cards

Resource Request

A demand made by a thread for certain resources required to perform its task.

31
New cards

Maximum Resource Needs

The highest amount of resource that a thread might request during its execution.

32
New cards

Circular Wait

A situation where a set of threads are each waiting for a resource that the next thread in the cycle holds.

33
New cards

Recovery Techniques

Methods employed to resolve deadlocks once detected.

34
New cards

Kill or Rollback

Possible actions taken to resolve a deadlock by terminating a thread or reverting to a prior state.

35
New cards

Consistency of System State

Ensuring that the system remains in a valid state after recovering from deadlocks.

36
New cards

Resource Acquisition Order

The predetermined sequence in which resources should be requested by threads.

37
New cards

Allocation Graph Cycle

A cycle in the resource allocation graph indicating the presence of a deadlock.

38
New cards

Dynamic Resource Allocation

Allocating resources to threads as per their request during execution.

39
New cards

Indefinite Waiting

A situation where a thread may never receive the resources it needs due to deadlocks.

40
New cards

Semaphore Array

An array of semaphores used to manage access to shared resources.

41
New cards

Process Coordination

The method by which operating system manages concurrent processes.

42
New cards

Deadlock Prevention Techniques

Strategies used to avoid the occurrence of deadlocks in a system.

43
New cards

Deadlock Risk Factor

The measure of how likely a deadlock is to occur based on system design.

44
New cards

Threads in Competition

Multiple threads vying for limited resources, which may result in deadlocks.

45
New cards

Resource Allocation Strategy

Plans enacted to handle requests for resources among concurrently running threads.

46
New cards

Cyclic Dependency

A situation in which a resource request forms a circle back to the original requester.

47
New cards

Resource Hold Policy

The protocol that governs how resources can be held by threads.

48
New cards

Unsafe State

A state where resource allocation can lead to potential deadlocks according to the Banker’s algorithm.

49
New cards

Resource Preemption Policy

Guidelines that determine whether resources can be taken away from running threads.

50
New cards

Wait-Die Scheme

A deadlock prevention strategy in which older transactions can wait for younger ones to release locks, while younger transactions are aborted if they request locks held by older ones.

51
New cards

Wound-Wait Scheme

A variation of deadlock prevention where older transactions can block younger ones.

52
New cards

Thread Synchronization

The coordination between threads to ensure correct operation in resource sharing.

53
New cards

Deadlock Simulation

A testing strategy to observe and analyze potential deadlocks in system design.

54
New cards

Dynamic Wait-For Graph

A representation of current waits in the system to assist in detecting deadlocks.

55
New cards

Throughput Impact

The effect on system throughput caused by waiting threads, potentially leading to deadlocks.

56
New cards

Concurrency Control

The control mechanisms put in place to manage simultaneous operations in a system.

57
New cards

Thread Scheduling

The process of determining which thread runs at any given time.

58
New cards

Preventive Measures

Actions taken proactively to avoid deadlocks in system design.

59
New cards

Thread Resource Quotas

Limits enforced on the resources allocated to individual threads.

60
New cards

Deadlock Classification

The categorization of deadlocks based on their occurrence and resolution strategies.

61
New cards

Mature Deadlock System

A system that has cycles and resources are heavily interdependent.

62
New cards

Inter-thread Communication

The communication methods used among threads to avoid deadlock situations.

63
New cards

Predictive Algorithms

Algorithms that predict the risk of deadlocks based on current system states.

64
New cards

Efficiency in Resource Usage

Optimizing the allocation and use of resources to minimize deadlocks.

65
New cards

Dynamic Resource Quota Management

Adjusting the resource quotas of threads in real-time based on their usage.

66
New cards

Look-Ahead Resource Planning

A strategy to foresee resource needs before deadlocks can occur.

67
New cards

Redundant Resource Allocation

Extra allocation of resources to mitigate the risk of deadlocks.

68
New cards

Resource Request Protocol

The procedures set for requesting resources to streamline thread operations.

69
New cards

Access Sequence Consistency

The maintenance of a consistent order in accessing resources across multiple threads.