Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1023 Page Views: 

What is deadlock?



Posted By: Avi Date: 8 November 2010 06:13:50 AM
 Answer:

Deadlock is a problem happens when two threads are waiting on each other to release a resource and each thread waiting for a resource which is held by the other waiting thread.


Posted By: avibtech


Date: 8 November 2010 06:13:50 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image 8JpyhB
Related Questions
Core Java : Can an object's finalize() method be invoked while it is reachable?

Can an object's finalize() method be invoked while it is reachable?

An object's finalize() method cannot be invoked by the garbage collector while the object is still r....
Category: Core Java Date: 11/3/2010 2:37:52 PM
Core Java : What is garbage collection?

What is garbage collection?

Garbage collection is the process of releasing memory used by unreferenced objects automatically.
Category: Core Java Date: 11/3/2010 2:05:51 PM
Core Java : What state does a thread enter when it terminates its processing?

What state does a thread enter when it terminates its processing?

It enters the dead state.
Category: Core Java Date: 11/3/2010 1:00:49 PM
Core Java : When you invoke a thread's interrupt method while it is  sleeping or waiting, What happens?

When you invoke a thread's interrupt method while it is sleeping or waiting, What happens?

When a task's interrupt() method is executed, the task enters the ready state. The next time the tas....
Category: Core Java Date: 11/3/2010 10:38:50 AM
Core Java : What value does readLine() return when it has reached the end of a file?

What value does readLine() return when it has reached the end of a file?

The readLine() method returns null when it has reached the end of a file.
Category: Core Java Date: 11/3/2010 9:22:52 AM