Accenture interview question

How to handle multithreading in swift