ProAnswers.org

What is synchronization?

Synchronization is the capabilility of control the access of multiple threads to any shared resource.It is used:

  1.        To prevent thread interference.
    
  2.        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.