If you have multiple threads with each thread creating an instance of foo.class, what methodology would you suggest to implement method synchronization in foo besides making foo static?
posted 15 years ago
Vic If each thread has its own instance of a foo object what is there to synchronize? Or is there some class member that needs to be synchronized in the foo object? If it is a class (static) member of class foo just create getter and setter methods in the foo class and synchronize the methods - or just part of the methods if they are large. hope that helps Dave