Add synchronized in OnlineCF example