wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

profile
VL Patel
Aug 15, 2024
0 Likes
0 Discussions
81 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

Cyber Attacks -- Trends Patterns and Security Countermeasures

Blog banner

Operating system

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

Process, process creation and process termination

Blog banner

MACHINE LEARNING

Blog banner

What is process

Blog banner

Multiprocessor and Multicore Organization

Blog banner

Pro-Tips On How To Keep your Foot Healthy

Blog banner

Maharashtrian culture: Tradition, Art, Food

Blog banner

Threads in OS

Blog banner

CYBER FORENCIS: PAST, PRESENT AND FUTURE.

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

Top 5 Benefits of Artificial Intelligence

Blog banner

Types of Threads

Blog banner

ROLE OF THE COMPUTER FORENSICS TOOLS AND TECHNIQUES

Blog banner

Social engineering in cyber security

Blog banner

evolution of operating system - Disha Parekh

Blog banner

Processing Crime and Incident Scenes

Blog banner

SQL Injection Techniques

Blog banner

Mobile Security

Blog banner

IoT Evolution

Blog banner

What is Influencer Marketing and its Trends

Blog banner

Functions of Operating System

Blog banner

Earth with no trees

Blog banner

Social Engineering Attacks

Blog banner

Memory

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Race Condition in Operating Theatre

Blog banner

How to tie a Tie

Blog banner

The Right way of cooking

Blog banner

Vikrant’s first blog

Blog banner

GUIDE TO GIS

Blog banner

Big O Notation

Blog banner

Health and fitness

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

Explain website hacking issues

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

Travel: Everything Everywhere!

Blog banner

File management

Blog banner

Concurrency management in operating systems

Blog banner

The Role of cryptography in cyber security

Blog banner

RSA (Rivest-Shamir-Adelman) Algorithm

Blog banner