Deloitte interview question

Multithreading concept work flow with syntax? How many way we can defined to stop the thread?