What is deadlock in java ?
What is deadlock in java ?
|
Deadlock in java is a part of multithreading. The most common cause of deadlock is two threads both acquiring the same set of locks, but in a different order.
|
Deadlock in java is a programming situation where two or more threads are blocked forever. Java deadlock situation arises with at least two threads and two or more resources.
|
A deadlock is a state where two or more threads are blocked waiting for the other blocked waiting thread to finish and thus none of the threads will ever complete.
|
It's simple that When two or more threads are waiting for each other to release lock and get stuck for infinite time, this situation is called deadlock . It happen in java platform in case of multitasking. So you should use any java frame to develop java multitasking program.
|
All times are GMT -7. The time now is 11:43 PM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.