title: how to synchronize a group of threads?
body: <p>I would like to make a synchronized method, such that all objects from that type of thread <em>class</em> can only access this function one at a time.</p>
  
  <p>When looking at <a href="http://www.nakov.com/inetjava/lectures/part-1-sockets/InetJava-1.3-Multithreading.html" rel="nofollow">this web page</a>, it says that:</p>
  
  <blockquote>
    <p>An object for which access is to be coordinated is accessed through the use of synchronized methods. These methods are declared with the synchronized keyword. Only one synchronized method can be invoked for an object at a given point in time. This keeps synchronized methods in multiple threads from conflicting with each other. </p>
  </blockquote>
  
  <p>This not what I am looking for, as I said, because I want to be able to make calls on the class mutually exclusive.</p>