COMP 007 - Week 7 to 8 - Deadlocks

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

1/57

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.

58 Terms

1
New cards

Deadlock

A condition where a process waits for a resource that is assigned to another process that is also waiting for a resource.

2
New cards

Starvation

A condition where a low-priority process gets blocked due to high-priority processes being executed.

3
New cards

Mutual Exclusion

At least one resource must be held in a non-sharable mode.

4
New cards

Hold and Wait

A process must be holding at least one resource and waiting for at least one resource currently held by another process.

5
New cards

No Preemption

Once a process is holding a resource, that resource cannot be forcibly taken away until the process voluntarily releases it.

6
New cards

Circular Wait

A situation where two or more processes form a circular chain, each waiting for a resource held by the next process.

7
New cards

Resource Allocation Graph

A graphical representation where circles represent processes and squares represent resources to model system resources.

8
New cards

Banker’s Algorithm

A deadlock avoidance algorithm that checks the safety of resource allocation before proceeding.

9
New cards

Aging

A technique used to gradually increase the priority of a low-priority process over time.

10
New cards

Resource Allocation

The management of system resources by the OS to ensure proper execution of processes.

11
New cards

Input-Processing-Output stages

The different stages through which a process goes, including requesting and using resources.

12
New cards

Detection and Recovery

The OS's task to detect deadlocks and recover from them using various strategies.

13
New cards

Ostrich Algorithm

A method where the OS assumes deadlock is unlikely and ignores potential deadlocks.

14
New cards

Safe state

A system state where processes can be allocated resources without causing a deadlock.

15
New cards

Unsafe state

A system state where the allocation of resources may lead to a deadlock.

16
New cards

Preempt resources

To forcibly take resources away from one process to allocate them to another.

17
New cards

Rollback

To return the state of resources to a previous safe point to resolve a deadlock.

18
New cards

Deadlock Conditions

The necessary conditions that must occur simultaneously for a deadlock to happen.

19
New cards

Blocking State

A state where a process cannot proceed because it is waiting for resource allocation.

20
New cards

CPU

Central Processing Unit, the primary component of a computer system responsible for execution of instructions.

21
New cards

I/O devices

Input/Output devices that facilitate interaction with the computer system.

22
New cards

Resource allocation techniques

Methods employed to manage the allocation and deallocation of resources among processes.

23
New cards

Deadly embrace

An early term used to describe deadlock situations in computing.

24
New cards

Priority in Resource Allocation

A mechanism used to determine which process gets access to the resources first based on priority.

25
New cards

Circular Resource Allocation

A scenario in which resources are allocated in a circular manner leading to potential deadlocks.

26
New cards

Process states

Stages that indicate the current status of a process in its execution cycle.

27
New cards

Process management

The act of managing the execution and resource allocation of processes in an operating system.

28
New cards

Expected resource requests

Predictions made about the resources that will be needed by each process during execution.

29
New cards

Resource Availability

The current number of resources that are available for allocation in the system.

30
New cards

Resource Request Failures

Situations in which a process requests resources that are not currently available.

31
New cards

System deadlocks

A state where two or more processes are unable to proceed because each is waiting on the other.

32
New cards

Resource request approvals

A decision made by the OS regarding whether to allow a process's request for resources.

33
New cards

Deadlock-free system

A system where algorithms and techniques are employed to ensure that deadlocks cannot occur.

34
New cards

Non-sharable resources

Resources that cannot be shared among multiple processes simultaneously.

35
New cards

Deadlock prevention techniques

Strategies to prevent deadlocks by ensuring that at least one of the necessary conditions for deadlock cannot hold.

36
New cards

Resource claiming

The action of a process requesting and holding some resources while waiting for others.

37
New cards

Dijkstra and Habermann

The developers associated with the creation of the Banker's Algorithm.

38
New cards

Max resource attribute

The maximum number of resources that a process may require, specified in the Banker’s Algorithm.

39
New cards

Resource allocation methods

The various approaches used to allocate system resources to processes.

40
New cards

Priority numbers

Numerical values assigned to resources to control access and prevent deadlocks.

41
New cards

Deadlock management policies

Rules and strategies implemented by the OS to handle situations of deadlock.

42
New cards

Decoupling resource requests

Separating the resource request phase from execution to minimize deadlock risk.

43
New cards

Resource dependency

The relationship between processes and the resources they require to function.

44
New cards

Sequential resource requests

Requests made for resources in a specific order, not allowing arbitrary requests.

45
New cards

Resource allocation failures

Instances where resource requests by processes cannot be fulfilled.

46
New cards

Finite resource availability

The limited nature of resources available for allocation in a computer system.

47
New cards

Process execution requirements

The specific resources and conditions that processes must meet to execute properly.

48
New cards

Deadlock occurrence

The event in which processes become unable to proceed due to mutual waiting for resources.

49
New cards

Safety check

An assessment to determine if resource allocation results in a safe or unsafe state.

50
New cards

Request a resource

The action taken by a process to obtain the necessary resources for execution.

51
New cards

Resource release

The action of a process freeing up resources that it no longer needs.

52
New cards

Definition of deadlock

The precise characterization of the conditions under which processes are deadlocked.

53
New cards

Detection algorithms

Procedures used by the OS to identify deadlocks in the system.

54
New cards

Examples of deadlock

Illustrations of scenarios that exemplify the phenomenon of deadlock among processes.

55
New cards

State of the system

The current configuration of processes and resources that determines whether a deadlock can occur.

56
New cards

Determining resource allocation

The process of deciding how to assign available resources among competing processes.

57
New cards

OS deadlock handling strategies

Methods employed by operating systems to manage and resolve deadlock occurrences.

58
New cards

Graphical representation of resources

A visual diagram used to depict the relationships between processes and resources in the system.