Agile Actors interview question

What does the 'synchronized' keyword do in Java?