Creates new Semaphore instance.
the number of permits available in this semaphore.
the number of already acquired permits, should be between 0 and permits (inclusively).
0
permits