MathWorks interview question

How to work with threads in Java?