Part 95 Deadlock in a multithreaded program

kudvenkat
kudvenkat
104.7 هزار بار بازدید - 11 سال پیش - Text version of the video
Text version of the video
http://csharp-video-tutorials.blogspo...

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.
@aarvikitchen5572

Slides
http://csharp-video-tutorials.blogspo...

All C# Text Articles
http://csharp-video-tutorials.blogspo...

All C# Slides
http://csharp-video-tutorials.blogspo...

All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenka...

All Dot Net and SQL Server Tutorials in Arabic
kudvenkatarabic

In this video we will discuss, why and how a deadlock can occur in multithreading with an example.

Scenario when a deadlock can occur
Let's say we have 2 threads
a) Thread 1
b) Thread 2

and 2 resources
a) Resource 1
b) Resource 2

Thread 1 has already acquired a lock on Resource 1 and wants to acquire a lock on Resource 2. At the same time Thread 2 has already acquired a lock on Resource 2 and wants to acquire a lock on Resource 1. Two threads never give up their locks, hence a deadlock.
11 سال پیش در تاریخ 1392/12/28 منتشر شده است.
104,707 بـار بازدید شده
... بیشتر