When you will synchronize a piece of your code | Eklavya Online

When you will synchronize a piece of your code

?– When you expect your code will be accessed by different threads and these threads may change a particular data causing data corruption.