Tuesday, March 10, 2009

What is synchronization and why is it important? (CoreJava)

Question :What is synchronization and why is it important? (CoreJava)
Answer :With respect to multithreading, synchronization is the capability to control
the access of multiple threads to shared resources. Without
synchronization, it is possible for one thread to modify a shared object
while another thread is in the process of using or updating that object'svalue. This often leads to significant errors.

No comments:

Post a Comment