请用synchronized英文例句说明synchronized的用法
user
```
public class Example {
    private int count = 0;

    public synchronized void increment() {
        count++;
    }

    public static void main(String[] args) {
        Example example = new Example();
        // Multiple threads can call the synchronized method to ensure mutual exclusion
        example.increment();
    }
}
assistant