Nigel Shrin wrote:SYNCHRONIZATION - lock tracking and static vars:
If different threads are calling the same method, but the threads and methods are in different instances of the same class, then there is no issue of locking unless they share a static variable, is that correct? The lock must work by tracking the object.instance.memberVariable?
THANKS
The synchronization is only for object
(job), rather than the Thread
(worker) or method. And static variable is not for single object, but for class.