Home > DeveloperSection > Interviews > What is synchronization in respect to multi-threading in Java?

Posted on    January-26-2015 10:58 PM

 Java Thread  Multiple Threading  Synchronization 
 1 Answer(s)
  484  View(s)
Rate this:

john rob

Total Post:11

Posted on    January-26-2015 11:58 PM

With respect to multi-threading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one Java thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to erroneous behavior or program.

Don't want to miss updates? Please click the below button!

Follow MindStick