Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: How to programatically limit the number of threads in a java Date: Mon, 15 Jun 2015 08:23:41 +0200 Lines: 18 Message-ID: References: <3yws2b8pk2kq.198es8aoaybyr.dlg@40tude.net> <556faf0a$0$292$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net YrgjJ8aBYQ8/Upa2783rTQo/AETuYoFc1LvafOSGt3H3nEKY0= Cancel-Lock: sha1:JRuO/QMH3E3jDSgtUV39ctMK2Hk= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:31797 On 15.06.2015 05:33, e wrote: > In article <556faf0a$0$292$14726298@news.sunsite.dk>, =?windows-1252?Q?Arne_Vajh=F8j?= wrote: >> I think that even the number of GC threads can be manipulated via >> XX options (like -XX:ParallelGCThreads=n). > A ThreadPoolExecutor is a good thing to use for this. No. GC threads are controlled differently as Arne has shown. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/