View Single Post
  #2 (permalink)  
Old 11-20-2007, 07:19 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,189
hardwired is on a distinguished road
Each instance of the class is calling its own method. To demonstrate synchronized method calls the method needs to be in another class, separate from each thread instance. Then the two threads will take turns accessing the same method.
Reply With Quote