Coin Metrics interview question

How to use threads in Java ?