java - How FutureTask also acts like a latch? -


a quote jcip:

"futuretask acts latch."

  • how ?

futuretask.get() wait completion of task countdownlatch.await(). both blocking methods, have overloaded variant timeout.


Comments

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

visual studio - TFS will not accept changes I've made to a Java project -