N
N
nuclear_kote2017-09-01 12:25:50
Java
nuclear_kote, 2017-09-01 12:25:50

Why is Symaphore needed in java.util.concurrent?

It seems that this is a counter that gives false if == 0 and can itself increase its number by timeout, but how can this be applied in reality?
and a couple more questions:
Why is StampedLock needed and why is tryLock needed in ReentrantLock?
I tried to figure it out, but I did not find a clear answer on how to apply it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alexandrov, 2017-09-01
@nuclear_kote

habra

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question