Publicis Sapient Interview Question

About multithreading, and how do you prevent it