Java Threads Question:

Download Job Interview Questions and Answers PDF

What is deadlock?

Java Threads Interview Question
Java Threads Interview Question

Answer:

When two threads are waiting for each other and can’t proceed until the first thread obtains a lock on the other thread or vice versa, the program is said to be in a deadlock.

Download Java Threads Interview Questions And Answers PDF

Previous QuestionNext Question
What is thread? What are the high-level thread states?
Or
What are the states associated in the thread?
How does multithreading take place on a computer with a single CPU?