What is thread deadlock? How to resolve thread deadlock?

Answers were Sorted based on User's Feedback



What is thread deadlock? How to resolve thread deadlock?..

Answer / mayur laniya

Deadlock is describe a situation , where more than one
threads are blocked, forever (Continue) in a waiting for
each other to released the resources.

- I think deadlock can't be resolved by writtong such kind
of programming statements.

Is This Answer Correct ?    3 Yes 0 No

What is thread deadlock? How to resolve thread deadlock?..

Answer / s.ramesh

Deadlock describes a situation where two or more threads are
blocked forever, waiting for each other.


Deadlock cann't be resolved.....

Is This Answer Correct ?    4 Yes 2 No

What is thread deadlock? How to resolve thread deadlock?..

Answer / divya

Deadlock can be resolved at design level.
* Instance referring to an object of Shared Resources.
* Infinite waiting for an event to happen in run method.

In the above mentioned case make sure that synchronization
is not been done.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

What is runnable?

2 Answers  


How are the elements of a borderlayout organized?

0 Answers  


What is meant by method chaining?

0 Answers  


What is the difference between the ‘font’ and ‘fontmetrics’ class?

0 Answers  


difference of inheritance and interface

3 Answers  






Explain lazy activation?

1 Answers   HCL,


Different between Struts and Spring? or Why use Spring, if you are already using Struts?

3 Answers   HP,


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

0 Answers  


What are the types of data passing mechanisams under JMS specification?

1 Answers  


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

0 Answers  


diff vector arraylist

4 Answers   Saka Solutions,


What is a compilation unit?

1 Answers  


Categories