Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Java deadlock
1 Answer(s)      4 years and 2 months ago
Posted in : Java Interview Questions


What is deadlock?

Advertisement
View Answers

October 27, 2010 at 4:33 PM


Hi,

Here is the answer,

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

Deadlock occurs when multiple threads need the same locks but obtain them in different order. If you make sure that all locks are always taken in the same order by any thread, deadlocks cannot occur.

For more details please go to the link.

http://www.roseindia.net/javatutorials/deadlocksinjava.shtml

Thanks.



Related Tutorials/Questions & Answers:
Java deadlock
Java deadlock  What is deadlock
Java deadlock prevention
Java deadlock prevention  preventing from deadlock in Java   You can read through Deadlock tutorial posted on roseindia. Deadlock in Java
Advertisements
code for database deadlock sicuation in java
code for database deadlock sicuation in java  how to prepare code for database deadlock situation in java(JDBC
Deadlock
Deadlock  hii, What is deadlock?   hello, Deadlock is a situation when two or more processes prevent each other from running
Deadlock
Deadlock      ..., this situation is known as Deadlock. Lets see a situation in the diagram shown below where the deadlock condition is occurred
Deadlock
Deadlock       Deadlock Deadlock is a unique situation in a multi user system that causes two or more users to wait indefinitely for a locked resource. First
What do you mean by Deadlock?
What do you mean by Deadlock?  What do you mean by Deadlock
corejava - Java Beginners
Deadlock Core Java  What is Deadlock in Core Java?   Deadlock is nothing but accessing a same space by different by different programs at the same time . To avoid this problem java has a concept called synchronization
Thread Deadlocks - Java Tutorials
Thread Deadlock Detection in Java Thread deadlock relates to the multitasking. When two threads have circular dependency on a synchronized, deadlock... lock that holds by first thread, this situation is known as Deadlock. Example
Multithreading ? - Java Interview Questions
Multithreading ?   Hi Friends, I am new to java , am not clear with Multithreading. Multithread will cause deadlock. We can implement Synchronization keyword or singlethreadmodel interface to avoid deadlock
Java Deadlocks - Java Deadlocks Tutorials, Deadlocks in Java
Java DeadLock In this tutorial you will learn about Deadlocks in Java. Author explains about Java Deadlocks in Java. It is very important to make your program detect and resolve the deadlock situations. This article explains
need help....how to connect and disconnect multiple databases(databases created in mysql) using java and my sql
need help....how to connect and disconnect multiple databases(databases created in mysql) using java and my sql  i am working on a project on deadlock in distributed transactions , and in that i am using my sql in java i need
Threading in Java
as Deadlock. Lock and Synchronized Threads Java uses monitor also... Threading in Java      ... is very important in Java Programing language. A thread is a sequential path
use of synchronozation - Java Interview Questions
to avoid the deadlock condition If there is a portion of code within a method... visit to : http://www.roseindia.net/java/thread/synchronization.shtml http://www.roseindia.net/java/java-methods/java-method-synchronized.shtml http
java
java  diff bt core java and java
java
java  what is java
Java
Java   Whether Java is pure object oriented Language
java
java  different between java & core java
java
java  explain technologies are used in java now days and structure java
java
java   why iterator in java if we for loop
JAVA
JAVA  how the name came for java language as "JAVA
java
java  what is java reflection
java
java  is java open source
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
Java
Java  how to draw class diagrams in java
java
java  explain object oriented concept in java
Java
Java   Whether Java is Programming Language or it is SOftware
java
java  what are JAVA applications development tools
java
java  why to set classpath in java
java
java  give a simple example for inheritance in java
 

 

 

DMCA.com