what happens(how this synchonization is maintained) when we synchronize a method or block?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Murali_Reddy
Posted On:   Saturday, November 19, 2005 05:16 AM

I came to know that the process of sync happens in 2 diff. ways. 1.mutual exclusion and 2.mutual colobaration.

how there r achieved?

ok. if mutual exclusion. no other thread is entertained on the same obj. to execute the sync method.

What is this mutual colobaration?

Re: what happens(how this synchonization is maintained) when we synchronize a method or block?

Posted By:   Jani_Kaarela  
Posted On:   Wednesday, November 23, 2005 03:30 AM


I'm not sure if I understood your question, but... Mutual collaboration is, AFAIK, not an exact concurrent programming term. It simply refers to situation, where several threads collaborate. A simple example would be a producer/consumer scenario in which threads communicate via wait & notify.



From a little help from my dear friend Google, I found a Sun article called Essential Java Classes. Read the lesson Threads: Doing Two Or More Tasks At Once, especially the chapter Synchronizing Threads.

About | Sitemap | Contact