Synchronization
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ramesh_srinivasan
Posted On:   Friday, December 29, 2006 04:51 AM

Can I use two synchronize methods in a one class?Can I use one object instance to call the two methods at a time.

Re: Synchronization

Posted By:   Muthamil_selvi  
Posted On:   Friday, December 29, 2006 06:01 AM

You can use any number of synchronized methods in class.You can't access two different sysn methods at a time.Only one thread can acquire object lock at a time.


But you can access static syncronized and not static synchronized method at a same time.

/Prabakar.
About | Sitemap | Contact