title: distributed lock with limited number of process can use
body: <p>I am looking for a distributed lock framework that has a feature like, only limited number of process can use this lock.</p>
  <p>For example:</p>
  <pre><code>Lock lock =new Lock(&quot;key&quot;, 5);
  </code></pre>
  <p>Only 5 process can use this lock at the same time, others has to wait until one of them finishes its job.</p>
  <p>Do you know that kind of a framework or how can I implement one with existing ones ?</p>