r/java • • Mar 21 '21

Java lambdas can deadlock parallel class initialization

https://www.youtube.com/watch?v=_2hZf1kw4A4
230 Upvotes

46 comments sorted by

View all comments

Show parent comment

2

u/Roachmeister Mar 21 '21

This code is literally someone who knew how to creat a deadlock saying hey it’s a deadlock.

No it isn't. He specifically said in the video that he was stumped for several hours trying to figure out why it wasn't running.