JavaThread practice