Synchronization
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?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 1, 2012, 7:36 PM EST
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
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jan 1, 2012, 7:41 PM EST
This link will explain more on multithread and sync.
Introduction to Microsoft Synchronization Framework: Part II
Synchronization in Parallel threads
Nipun TomarRank #90 · 23K reputationPosted Jan 1, 2012, 11:04 PM EST
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
Sam HobbsRank #107 · 20.5K reputationPosted Jan 2, 2012, 12:00 AM EST