About Question enthuware.ocpjp.v8.2.1761 :
Moderator: admin
-
- Posts: 27
- Joined: Fri Jul 22, 2016 9:14 am
- Contact:
About Question enthuware.ocpjp.v8.2.1761 :
There is nothing in the main method that could possibly call run() method of Merger with any answer. A Merger instance is just constructed, but never used. Or am I missing something?
-
- Posts: 1
- Joined: Tue Aug 16, 2016 2:34 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1761 :
Actually, the Merger instance is passed to the CyclicBarrier as the barrierAction (a Runnable "which will execute the given barrier action when the barrier is tripped, performed by the last thread entering the barrier", see https://docs.oracle.com/javase/8/docs/a ... .Runnable- ).
Who is online
Users browsing this forum: No registered users and 7 guests