wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

profile
VL Patel
Aug 15, 2024
0 Likes
0 Discussions
82 Reads

Let's first understand what is deadlock, Deadlock is the situation where two or more processes are waiting for some process or event to happen but that event will never happen. It is kind of situation where a set of processes are blocked because each process is holding a resource and waiting for another resource acquired by some other process.

Example, There is two process namely P1 and P2 holding some resource like R1 and R2 respectively, P1 is saying that I need R2 to proceed and P2 is saying I need R1 to proceed but non of them will release that particular resource, so in case both process are waiting for some event to get happen but that event will never happen. Ultimately this situation refer to the concept of Deadlock.


Now let's understand some conditions that should be met for happening of Deadlock, there is Four necessary condition that should be met for Deadlock happening, that are as follows.

1. Mutual Exclusion:- It is situation where two processes cannot use same resources at same time. The process is in the critical section where it is using the resource and at the same time some other process comes in for that resource. Critical Section refers to the situation where the process will use the resource until it gets over and none of other process will not access that resource until the critical section process gets over.

2. Hold and Wait:- This refer to A process holding a resource and waiting for another resource at same time. There is also a situation where another process who was holding a resource and waiting for a resource that is acquired by some other resources.

3. No preemption:- The process which once scheduled will be executed till the completion. It is kind of situation where if one process is using some resource and some other process is saying that I want this resource irrespective of the high preference that resource should not be released until the process is completed. There should be equal priority given to each process.

4. Circular Wait:- This refer to the situation where all the processes are waiting for the resource in a cyclic manner. This is kind of looping where each processes is waiting for some resource to get proceed but that resource is acquired by some processes, there can be many processes also.


So with this information we learned about Deadlock and 4 necessary condition that should be satisfied then there is a Deadlock situation.


Comments ()


Sign in

Read Next

Computer Security

Blog banner

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner

Service Design Principles

Blog banner

Exploring Arcadia’s Cowboy Culture, Peace River & Hidden Attractions

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

CRISP-DM Methodology

Blog banner

Bots and Cyber Security

Blog banner

MAILFENCE

Blog banner

Short note on Microsoft office

Blog banner

Bitcoin sent using radio waves! No internet!

Blog banner

MUTUAL EXCLUSION

Blog banner

IT Service Continuity Management

Blog banner

How Reading Books Shape a Child’s Imagination and Thinking?

Blog banner

What are NFT s?

Blog banner

Deadlock

Blog banner

Service transistion under difficult conditions

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

The IT Service Lifecycle

Blog banner

Understanding the 'Ambiverts'

Blog banner

Modern Operating System

Blog banner

Cache Memory in Operating Systems

Blog banner

Capacity management in ITSM

Blog banner

Types of E-Commerce

Blog banner

Objectives and Functions of Operating System

Blog banner

Balance

Blog banner

Evolution of the Microprocessor ~ Aditya Pai

Blog banner

Exploring Florida Beyond the Obvious Tourist Trails

Blog banner

Session Hijacking

Blog banner

Virtual memory

Blog banner

Fitness

Blog banner

Utilizing Data-Hiding and Retrieval Techniques in Cyber Forensics

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

Having passion in life

Blog banner

Spotify

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

10 Reasons Why Guy BestFriends are the Must in Every Girl's Life

Blog banner

Characteristics of Etherum

Blog banner

Understanding Univariate, Bivariate, and Multivariate Analysis in Data Science

Blog banner

Privacy in Social Media and Online Services

Blog banner

Music

Blog banner

Memory Partitioning

Blog banner