Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe07.iad.POSTED!not-for-mail From: Arved Sandstrom User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Threads, waiting for last one to finish References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 8 Message-ID: <9TcIs.35775$tK1.985@newsfe07.iad> X-Complaints-To: abuse@newsgroups-download.com NNTP-Posting-Date: Sat, 12 Jan 2013 12:42:45 UTC Organization: Public Usenet Newsgroup Access Date: Sat, 12 Jan 2013 08:42:45 -0400 X-Received-Bytes: 1104 Xref: csiph.com comp.lang.java.programmer:21351 On 01/11/2013 05:56 PM, Roedy Green wrote: > I have 25 threads that start at once. I need to wait until the last > one completes. Is there a better way to handle that than using a > ThreadPoolExecutor which seems overkill. > Any reason why you couldn't use CyclicBarrier? AHS