Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: Threads, waiting for last one to finish Date: Tue, 15 Jan 2013 08:19:53 -0800 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <50f264aa$0$80119$742ec2ed@news.sonic.net> <50f37d14$0$293$14726298@news.sunsite.dk> <50f4f730$0$80137$742ec2ed@news.sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 15 Jan 2013 16:19:56 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="12637"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AfwAmRA2dsUVdB5wdjru9m2MwaY8Dho4=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <50f4f730$0$80137$742ec2ed@news.sonic.net> Cancel-Lock: sha1:AZjgI/nbBLXJ/isQNtCHY7kxAwQ= Xref: csiph.com comp.lang.java.programmer:21414 On 1/14/2013 10:29 PM, Kevin McMurtrie wrote: > variable sized thread pool is the worst (glitches maybe 10% of the > time!) but the others have rare glitches too. These glitches are fixed > when a new task is queued so a steady stream of tasks appears to work > correctly. What happened with the very last task is a gamble. That's > why you shouldn't use shutdown() to wait for completion. > > I'm not going to walk through the code here. It's awful stuff that's Hmm, could you produce a code example that glitches 10% of the time? Otherwise I'm afraid that I'll have to file your claims under "internet b.s." There's no way I'm going to believe that Oracle's code is that buggy just on hearsay.