-
doubt about synchronized
I have a method which is a synchronized method (for example, method Foo in the following code block) and in this synchronized method another method which is not synchronized is invoked (for example, method Goo in the following code block). I'm wondering when executing in Goo from Foo, whether we still have the synchronized feature
Code:
synchronized public Foo()
{
Goo();
}
private Goo()
{
}
-
As far as the callers of Foo are concerned, yes. But who else can be calling Goo besides Foo?
-