Commit Graph
3 Commits
Author SHA1 Message Date
IgorNB 7f51ae04c0 Update SemaPhoreDemo.java 2019-10-02 19:56:19 +03:00
IgorNB efb631f017 safe semaphore.release in finally block 2019-10-02 19:55:06 +03:00
IgorNB f3537acf6b SemaPhoreDemo double acquire fix
tryAcquire() already acquires a permit, if one is available (no need to call acquire() after it)
2019-10-02 12:52:46 +03:00