Thread
:
is it bug? or am i missing a point?
View Single Post
#
2
(
permalink
)
11-20-2007, 07:19 PM
hardwired
Senior Member
Join Date: Jul 2007
Posts: 1,189
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.
hardwired
View Public Profile
Send a private message to hardwired
Find all posts by hardwired