IBM interview question

Describe how to keep data in sync in mutli-thread application