单项选择题

A.在第2行加 synchronized 修饰符。
B.在第3行加 synchronized 修饰符。
C.在第3行、第4行和第6行加 synchronized 修饰符。
D.在第4行、第6行和第8行加 synchronized 修饰符。