What Is Advantage Of Synchronization?

What Is Advantage Of Synchronization? Synchronization makes sure that shared resources or data can be accessed by only one thread at a time while execution. its advantage is that it prevent data inconsistency and disadvantage is that it makes execution slower as it makes other thread wait till current thread completes execution. What is the