Accenture Interview Question

How to handle multithreading in swift