Java Threads Question:

What is deadlock?

Tweet Share WhatsApp

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 PDF Read All 38 Java Threads Questions
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?