🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17550

Re: Tweaking threads

#17550
From: Ted Tripp
Date: Fri, 14 Mar 2003 21:10
39 lines
2681 bytes
Well, after some playing around I added a user defined throttle that can be
set and puts a sleep of 20--200 ms within a busy loop.  Also, letting user
define the number of threads--max 100--since I have no idea what kind of
system or bandwidth they will have.  I ran it succesfully at 100
threads--sure, it ran at half speed and eventually got buffer overflows from
my DSL router, but she worked!  Thanks for the input all.  Your commission
checks are in the mail.  There is also good money to be made a well written
thread manual...

ttripp

"Ted Tripp" <ttripp@skypoint.com> wrote in message
news:3e70406f@newsgroups.borland.com...
> Thanks for the info folks.  Yes, it is true I do have plenty of looping.
> This is a desktop (so far) app that does multiple http(Indy 9) reads
> simultaneously.  It seem to rock the first 10-20 seconds then slows
down--I
> can see the CPU avail disappear.  I would have thought the reads on my
> clunky DSL would act as a built in sleep (though, of course we can assume
> the customer may have something better than a clunky DSL).  Anyway, I'll
try
> introducing a few Sleeps within the next few days and see if I can get
some
> performance back.  Oddly, I seem to be having more difficulty simply
getting
> the OnWork Bytes/Sec to work properly, but that's a post for a different
ng.
>
> Another question, I vaguely recall reading that threads are initialized
with
> a certain (default?) amount of memory.  I seem to recall something like
> 1MB--maybe this was a nonwindows OS...  Anyway, if true, can this, should
> this, be tweaked?  If not true, NM.
>
> Again, thanks for all the info...
>
> ttripp
>
>
Technical Details
Message-ID: <3e7244e3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e6deb3f@newsgroups.borland.com> <3e6e2fb9@newsgroups.borland.com> <3e70406f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,47731b28ebfc1a3
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-15 07:14:00 PST
Reply-To: "Ted Tripp" <ttripp@skypoint.com>
From: "Ted Tripp" <ttripp@skypoint.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e6deb3f@newsgroups.borland.com> <3e6e2fb9@newsgroups.borland.com> <3e70406f@newsgroups.borland.com>
Subject: Re: Tweaking threads
Date: Fri, 14 Mar 2003 15:10:33 -0600
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 199.86.45.13
Message-ID: <3e7244e3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047676131 199.86.45.13 (14 Mar 2003 13:08:51 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail