What is a deadlock ?
Answers were Sorted based on User's Feedback
Answer / janet
When two threads are waiting each other and can't proceed
the program is said to be deadlock.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / ravikiran(aptech mumbai)
deadlock is the state which will occur when two synchronized
methods calling one another continuously
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / annonmys
deadlock is the state when different processes are waiting
for the resorces held by any other processes, which in turn
are waiting for some other processes and so on. in this
situation no process is able to perform the required task
and hence goes in the deadlock state.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / madhuri reddy
if one process need a resourse,but it is used by another
process.then that process wait for sometime for that
resourse.that process wait sometime later it will go to
deadlock stage.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / hanu
If a process is waiting for a resource is using by
another process in that case deadlock encounter if its
waited undefinetly(For a certain period) ..
Is This Answer Correct ? | 1 Yes | 0 No |
Can we serialize singleton class?
I have a Arraylist object, it has duplecate values also. Now question is i want delete duplecate data in that objet with out using Set?
why java uses class level type casting ?
What is the purpose of garbage collection in java, and when is it used?
What is the finalize method do?
which one is performance wise advantageious from List,Set,Map?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What is reverse function?
How to check if linked list contains loop in java?
What is method overriding in java ?
What are the features of junit?
What are meta-annotations?