Code examples used during the talk on Java threads (19/05/2021) at Hof University to demonstrate abilities of threads in Java. Please forgive any omissions or bad coding practices you may encounter. I'm solely to blame for such incidents and no one else. Forgive me also for the aesthetics of the interface you'll see.
I'm a uni professor and researcher and hence justified to write "brain-dead" code according to Linus Torvalds who said to Andrew S. Tannenbaum:
"Re 2: your job is being a professor and researcher: That's one hell of a good excuse for some of the brain-damages of minix. I can only hope (and assume) that Amoeba doesn't suck like minix does."
For more info on this, see: https://www.oreilly.com/openbook/opensources/book/appa.html