+ 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
2 odpowiedzi
+ 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.
0
Yeah I got it... Thanks