Synchronization is the capabilility of control the access of multiple threads to any shared resource.It is used:
To prevent thread interference.
To prevent consistency problem.
Synchronization is the ability to control the access of multiple threads to shared resources.Synchronization stops multithreading. With synchronization , at a time only one thread will be able to access a shared resource.