Examples from Java Thread Programming by Paul Hyde