public void func() {
synchronized(this) {
...
}
}
is less efficient than
public synchronized void func() {
...
}
public void func() {
synchronized(this) {
...
}
}
is less efficient than
public synchronized void func() {
...
}