In simple words, deadlock means some action waiting for other activities to complete. A single-threaded application can produce deadlock, If we have locks that are not re-entrant and a thread attempts to reacquire a lock that it owns already (or) If the same thread is waiting to complete the execution of itself like a recursive call.
In simple words, deadlock means some action waiting for other activities to complete. A single-threaded application can produce deadlock, If we have locks that are not re-entrant and a thread attempts to reacquire a lock that it owns already (or) If the same thread is waiting to complete the execution of itself like a recursive call.
Interview Preparation Kit: topmate.io/genzcareer/930954
Get this above Kit and crack any interview
Borther, please share the Interview on project base, real time scnario base questions and also managerial round questions.. Please ....
Hi Faizal,
Thanks for your all these hard works & sharing us informative videos. These are very helpful for us. Many thanks.
great job sir .
very informative...thanks for sharing..
Yes, I think we can modify final reference...like stringjoiner
Actually object Reference is possible to create final
Like a : public static final class_name obj =new class_name();
@genz-career, you said there is a scenario where dead lock situation happens with in a single threaded application, may i know when it will be?
In simple words, deadlock means some action waiting for other activities to complete. A single-threaded application can produce deadlock,
If we have locks that are not re-entrant and a thread attempts to reacquire a lock that it owns already (or)
If the same thread is waiting to complete the execution of itself like a recursive call.
@@ameenahmad5986 Locks in Java are by default Reentrant.
You need to create your own custom Non-Reentrant Lock to do something like this
Sir please give some idea about salary also
do you give referals in usa as well?
Can someone please tell me the unusual scenario where deadlock occurs with a single thread
In simple words, deadlock means some action waiting for other activities to complete. A single-threaded application can produce deadlock,
If we have locks that are not re-entrant and a thread attempts to reacquire a lock that it owns already (or)
If the same thread is waiting to complete the execution of itself like a recursive call.