I have this class that is instantiated multiple times. Each instance needs to talk to the com port. The problem I am having is synchronized only works on one object. So what I am trying to figure out is how get get a group of the objects to be syncronized together. Each instance will have one com port to be used. So if two instances are not using the same com port there is no reason to synchronize. Also instead of a com port it might be a socket.
In other words how can I group objects together to be synchronized.