modify SimpleSemaphore.java