awesome-low-level-design
awesome-low-level-design copied to clipboard
Unnecessary Synchronization in Tic Tac Toe
In Tic Tac Toe design, the Board class uses a synchronized make move method. Since a new board and therefore a new grid is created for each game, therefore no concurrency issues can be introduced there. Also if judging from user actions, the users proceed one by one and there are no concurrent operations there. Based on these things, synchronized keyword is not required.