WHAT IS SYNCHRONIZATION IN RESPECT TO MULTI-THREADING IN JAVA?

john rob

Total Post:11

Points:55
Posted by  john rob
 718  View(s)
Ratings:
Rate this:
  1. john rob

    Post:11

    Points:55
    What is synchronization in respect to multi-threading in Java?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!