Chewy interview question

How does volatile works in conjuction with thread safety.