BairesDev interview question

How to handle multithread in Java?