What is thread deadlock? How to resolve thread deadlock?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

1100


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

578


Where can I ask questions and make suggestions about seam?

588


When a thread blocks on i/o?

565


What is the form of storage space in java?

1737






What is the difference between a static and a non-static inner class?

596


Explain what is orm?

674


What is the RMI and Socket?

623


What is a modular application? What does module-relative mean?

538


Which javutil classes and interfaces support event handling?

583


What is the map interface?

609


Is the ternary operator written x : y ? Z or x ? Y : z ?

637


Can I import same package/class twice? Will the jvm load the package twice at runtime?

645


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

1736


Is a class a subclass of itself?

588