Coforge interview question

How is data integrity protected in a multithreading , multi processor environment?