tJava Threading sample code