Apple interview question

how do you perform multithreading