+ 1

Does the program cause the deadlock problem?? Tell the reason

According to me it should cause the problem of deadlock.... But I saw an answer on stackoverflow,, according to which it can cause the problem of deadlock.... So, help me....... Link of stakeoverflow, where I got confused-: https://stackoverflow.com/questions/6260038/deadlocks-and-synchronized-methods https://code.sololearn.com/cPJeX6wDn0qh/?ref=app

9th Aug 2020, 2:24 PM
👑$PIRIT👑
👑$PIRIT👑 - avatar
2 Respuestas
+ 2
Look at the first answer, it would not produce 100% of the times you run it. There is a rare chance it will produce a deadlock. But if you run it a lot of times, maybe it might get a deadlock once.
12th Aug 2020, 4:56 AM
Prabhakar Dev
Prabhakar Dev - avatar
0
Yeah I got it... Thanks
12th Aug 2020, 7:48 AM
👑$PIRIT👑
👑$PIRIT👑 - avatar