semaphoreV2.returnLease(lease); System.out.println("thread0 return lease"); } }).start(); }privatestaticvoidstartThread0() {newThread(() ->{ InterProcessSemaphoreV2 semaphoreV2=newInterProcessSemaphoreV2(client,
{ InterProcessSemaphoreV2 semaphoreV2 = new InterProcessSemaphoreV2(client, path, 1); Lease lease = null; try { System.out.println("thread0 acquiring"); lease = semaphoreV2.acquire(); System.out.println("thread0 acquired and sleeping"); Thread.sleep(3000); } catch (Exception e) { e....