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 |
In java, how we can disallow serialization of variables?
write a simple program inheritance?
Where is const variable stored?
What are the two ways you can synchronize a block of code?
please send code example of inner classes?
Explain your academic project?
2 Answers Accenture, Levonsys, SDF, TCS, Tech Mahindra,
What is the new line character?
Can we access a database using applets?
What is the difference between Array and Hash Table?
What classes of exceptions, thrown by a throw statement?
How variables are stored in memory?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?