If you have 1 instance of server (and I suppose it is so), yes technically same object = same lock = mutual exclusion.
Type: Posts; User: andbin
If you have 1 instance of server (and I suppose it is so), yes technically same object = same lock = mutual exclusion.
The code is not complete .... so I can only guess. I see that processMessage is an "instance" method and it's synchronized. This means that the lock is acquired on the object on which processMessage...