title: Java Semaphore maximum?
body: <p>Is there a way of knowing what is the MAXIMUM number of permits that a semaphore object has ever had in its' lifetime? 
  We initialize it like this:</p>
  
  <pre><code>Semaphore sem = new Semaphore(n);
  </code></pre>
  
  <p>and at times we acquire, and at times we release what we acquired. But there are certain situations when we need to release more than we acquired in order to increase the number of permits. Is there a way to know the MAXIMUM number of permits that ever was in this semaphore?</p>