Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28117

Re: thread pool with CachedThreadPool

From Josip Almasi <joe@vrspace.org>
Newsgroups comp.lang.java.programmer
Subject Re: thread pool with CachedThreadPool
Date 2014-04-17 12:12 +0200
Organization B.net Hrvatska d.o.o.
Message-ID <lio9du$ah$1@gregory.bnet.hr> (permalink)
References (3 earlier) <H2i3v.81309$aK5.58575@fx24.iad> <br6n5eF4pmgU1@mid.individual.net> <lilmqh$feh$1@gregory.bnet.hr> <br7nfqFbmbrU1@mid.individual.net> <mcmurtrie-DCE798.22115916042014@c-61-68-245-199.per.connect.net.au>

Show all headers | View raw


On 04/17/2014 07:11 AM, Kevin McMurtrie wrote:
> In article <br7nfqFbmbrU1@mid.individual.net>,
>   Robert Klemme <shortcutter@googlemail.com> wrote:
>
>> On 16.04.2014 12:42, Josip Almasi wrote:
>>>
>>> Blocked thread itself spends no cpu time.
>>> Running thread may spend some more cpu time though, for lock checks.
>>> Real issue is flushing pipeline to ensure cache coherency among all cpu
>>> cores.
>>> So, more 'synchronized' statements your single running thread
>>> encounters, more cpu stalls. It's not really 'taking' cpu time, it's
>>> wasting it.
>>
>> I don't think this applies.  We were talking about threads idling in the
>> pool.

[snip]

Probably so.
But, see, it's not just 'small ammount of kernel time', issues go all 
the way to cpu design.

> Sun's thread pools are garbage

[snip]

Dang.
Thanks Kevin, you possibly saved me a lot of time.

Regards...

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

thread pool with CachedThreadPool Philipp Kraus <philipp.kraus@flashpixx.de> - 2014-04-15 10:47 +0200
  Re: thread pool with CachedThreadPool Joerg Meier <joergmmeier@arcor.de> - 2014-04-15 12:02 +0200
    Re: thread pool with CachedThreadPool Philipp Kraus <philipp.kraus@flashpixx.de> - 2014-04-15 12:40 +0200
      Re: thread pool with CachedThreadPool Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-04-15 15:05 -0700
        Re: thread pool with CachedThreadPool Robert Klemme <shortcutter@googlemail.com> - 2014-04-16 08:43 +0200
          Re: thread pool with CachedThreadPool Josip Almasi <joe@vrspace.org> - 2014-04-16 12:42 +0200
            Re: thread pool with CachedThreadPool Robert Klemme <shortcutter@googlemail.com> - 2014-04-16 17:55 +0200
              Re: thread pool with CachedThreadPool Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2014-04-16 22:11 -0700
                Re: thread pool with CachedThreadPool Josip Almasi <joe@vrspace.org> - 2014-04-17 12:12 +0200

csiph-web