Interviews5 answers
What is a deadlock ? Explain .
5 Answers
thank you ms. Shweta
Sanjay SinghPosted Jun 1, 2014, 6:49 PM EDT
http://www.c-sharpcorner.com/Blogs/15014/deadlock-vs-livelock.aspx
Shweta LodhaPosted May 7, 2014, 12:40 AM EDT
thanks munesh sharma
Sanjay SinghPosted Apr 28, 2014, 8:29 AM EDT
What is a deadlock in operating system? Is it a state where two ore more operations are waiting for each other, say a computing action 'A' is waiting for action 'B' to complete, while action 'B' can only execute when 'A' is completed. Such a situation would be called a deadlock. In operating systems, a deadlock situation is arrived when computer resources required for complete of a computing task are held by another task that is waiting to execute. The system thus goes into an indefinite loop resulting into a deadlock.
The deadlock in operating system seems to be a common issue in multiprocessor systems, parallel and distributed computing setups
Munesh SharmaPosted Apr 28, 2014, 7:56 AM EDT
Two processes wating to update the rows of a table which are locked by the other process then deadlock arises. In a database environment this will often happen because of not issuing proper row lock commands. Poor design of front-end application may cause this situation and the performance of server will reduce drastically.
These locks will be released automatically when a commit/rollback operation performed or any one of this processes being killed externally.
Sanjay SinghPosted Apr 28, 2014, 4:07 AM EDT


