Add thread strat(), interrupt() and join() methods to the program.