Codes with minor comments are from http://www.caveofprogramming.com/youtube/   also freely available at   https://www.udemy.com/java-multithreading/?couponCode=FREE