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


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

Re: Thread question

Date 2011-11-30 09:34 -0800
From Patricia Shanahan <pats@acm.org>
Newsgroups comp.lang.java.programmer
Subject Re: Thread question
References <i9tbd7ppgalucct4i2t2agj9hldjumnmk4@4ax.com> <081cd7paqgsa8bbg5gjh8v1kinfp7asgt0@4ax.com> <YbKdnc-ylpHAkkvTnZ2dnUVZ_vudnZ2d@earthlink.com> <2da33860-dc78-4e22-a53b-0b7e0631900a@y7g2000vbe.googlegroups.com>
Message-ID <ba6dne3Q6tyq9EvTnZ2dnUVZ_qmdnZ2d@earthlink.com> (permalink)

Show all headers | View raw


On 11/30/2011 7:10 AM, Paul Cager wrote:
> On Nov 30, 11:11 am, Patricia Shanahan<p...@acm.org>  wrote:
>> On 11/30/2011 2:32 AM, Roedy Green wrote:
>> ...
>>
>>> I'll be curious to find out the optimal number of threads.  I don't
>>> like to pester the book stores.
>>> ...
>>
>> Here's a basic approach to picking a thread count:
>> ...
>
> In this case it's not just your own resources you have to take into
> consideration. Some web sites won't like having 20 simultaneous
> connections from the same IP scraping the site.

The number of connections, just like the number of outstanding
requests, should indeed be considered a critical resource, and will give
one of the bounds on the number of threads. I would not be surprised if
the external limits gave tighter bounds than the internal ones.

Patricia

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


Thread

Thread question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-30 01:31 -0800
  Re: Thread question Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-11-30 01:48 -0800
  Re: Thread question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-30 02:32 -0800
    Re: Thread question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-30 02:48 -0800
    Re: Thread question Patricia Shanahan <pats@acm.org> - 2011-11-30 03:11 -0800
      Re: Thread question Paul Cager <paul.cager@googlemail.com> - 2011-11-30 07:10 -0800
        Re: Thread question Patricia Shanahan <pats@acm.org> - 2011-11-30 09:34 -0800
    Re: Thread question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-30 06:10 -0800
      Re: Thread question markspace <-@.> - 2011-11-30 06:13 -0800
      Re: Thread question Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-30 11:53 -0800
  Re: Thread question Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-11-30 07:28 -0500
    Re: Thread question markspace <-@.> - 2011-11-30 05:30 -0800
      Re: Thread question Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-11-30 21:04 -0500
        Re: Thread question markspace <-@.> - 2011-11-30 18:28 -0800
  Re: Thread question markspace <-@.> - 2011-11-30 05:50 -0800
    Re: Thread question markspace <-@.> - 2011-11-30 06:04 -0800
  Re: Thread question Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-30 11:48 -0800
  Re: Thread question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-30 13:23 -0800

csiph-web