Somebody ask me about synchronization in case of multi-threading but i could not give him a satisfactory answer, could anyone please help me in giving proper explaination?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question.
Sam HobbsPosted Jan 2, 2012, 5:00 AM
Nipun TomarPosted Jan 2, 2012, 4:04 AM
Synchronization: Two or more threads share the same resource (variable or method) while only one of them can access the resource at one time.
Plz see this link for more information:
http://www.roseindia.net/java/thread/SynchronizedThreads.shtml
Thanks
Jaganathan BantheswaranPosted Jan 2, 2012, 12:41 AM
This link will explain more on multithread and sync.
Introduction to Microsoft Synchronization Framework: Part II
Synchronization in Parallel threads
Satyapriya NayakPosted Jan 2, 2012, 12:36 AM
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.
Please refer the below link
http://www.javamex.com/tutorials/synchronization_concurrency_1.shtml
Thanks