Search:

Type: Posts; User: andbin

Search: Search took 0.10 seconds.

  1. Re: Why isn't my synchronized function acting synchronized?

    If you have 1 instance of server (and I suppose it is so), yes technically same object = same lock = mutual exclusion.
  2. Re: Why isn't my synchronized function acting synchronized?

    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...
Results 1 to 2 of 2