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


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

Re: nThreads

Date 2013-02-15 08:56 -0500
From Arne Vajhoej <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: nThreads
References <e8f7a805-da38-4882-8037-2c964982abd1@googlegroups.com> <3snmg3r1o72q$.gtsip45yf6q5.dlg@40tude.net>
Message-ID <511e3e8a$0$281$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


On 2/13/2013 6:46 PM, Joerg Meier wrote:
> On Wed, 13 Feb 2013 15:25:33 -0800 (PST), bob smith wrote:
>
>> How much is too much in terms of me telling it how many threads I want?  Is it okay to ask for 100 threads?  What about 256?
>
> While modern operating systems support thousands of threads, there are
> really not many advantages in using more threads than you have CPUs/cores,
> and the additional context switching of having more threads than cores
> comes with its own performance cost.

That is only for CPU intensive tasks.

If tasks are waiting then it is a very different story.

Arne

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


Thread

nThreads bob smith <bob@coolfone.comze.com> - 2013-02-13 15:25 -0800
  Re: nThreads Joerg Meier <joergmmeier@arcor.de> - 2013-02-14 00:46 +0100
    Re: nThreads Roedy Green <see_website@mindprod.com.invalid> - 2013-02-14 03:43 -0800
    Re: nThreads Arne Vajhoej <arne@vajhoej.dk> - 2013-02-15 08:56 -0500
  Re: nThreads markspace <markspace@nospam.nospam> - 2013-02-13 16:06 -0800
    Re: nThreads Joerg Meier <joergmmeier@arcor.de> - 2013-02-14 01:46 +0100
      Re: nThreads Lew <lewbloch@gmail.com> - 2013-02-13 17:27 -0800
      Re: nThreads Robert Klemme <shortcutter@googlemail.com> - 2013-02-14 22:19 +0100
      Re: nThreads Arne Vajhoej <arne@vajhoej.dk> - 2013-02-15 08:59 -0500
  Re: nThreads Roedy Green <see_website@mindprod.com.invalid> - 2013-02-13 18:37 -0800
    Re: nThreads Arne Vajhoej <arne@vajhoej.dk> - 2013-02-15 09:01 -0500
  Re: nThreads Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-02-14 07:07 -0400
  Re: nThreads Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-02-14 09:55 -0800
  Re: nThreads Arne Vajhoej <arne@vajhoej.dk> - 2013-02-15 08:55 -0500

csiph-web