in the example of the class XYZ. when thread1 tries to access the sync methods it needs to get the lock on the oject. ie synchronized (this) right?
my doubt is does "this" represent instance of the class from which the thread is called. or is it something else. Can someone tell me aout Class Locks for staic methods synchroniztion.
one more thing, in that example if thread1 gets the lock and is ale to access the synch method abc(), does the thread need to reaquire the lock for get access to the synch method def() or it can access the method directly as it holds the lock.
Thanks in advance
[ July 28, 2006: Message edited by: Sri Vishnu Mandaleeka ]