Synchronization is the mechanism that ensures that only one thread is accessed the resources at a time.
Multithreading is the mechanism in which more than one thread run independent of each other within the process.
With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.
Answered by
Yash
, an ibibo Master,
at
12:27 AM on July 10, 2008