🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Tweaking threads

#17511
From: Dennis Jones
Date: Thu, 13 Mar 2003 01:06
39 lines
3019 bytes
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3e6fc46e$1@newsgroups.borland.com...
>
> "Dennis Jones" <djones@nospam.com> wrote in message
> news:3e6fb851$1@newsgroups.borland.com...
> > On the other hand, if every one of those threads is busy
> > doing something (or worse, is in a tight loop watching the
> > state of a flag), then the amount of context switching
> > would probably be significantly measureable, and
> > seriously affecting performance.
>
> I can only speak for my own software in that regard, but I don't see that
> happening.  In my company's primary software, the one running 100s of
> threads at a time, the majority of them are actively processing live data
> through the lifetime of each thread from start to stop without much in the
> way of noticable performance hits.

Are you saying that the program experiences no degredation in performance
due to those 100's of context switches, or that the program is not
significantly impaired by 100's of context switches?  Saying that the
program still performs well, or within expected limits, or even that you
don't notice any degredation in performance, doesn't necessarily mean that
it isn't happening.  However, you certainly can't complain too much about it
if the program still performs well!

You probably have a case where fewer threads might be more efficient from
the OS'es perspective (because of context switching), but would be
unacceptable from the application's perspective (because the application is
expected to, or required to, perform those 100's of operations
simultaneously).

Is it possible for your application to operate with fewer threads (say, 4 or
5)?  I would be curious to see the results of measurements where the
application runs with significantly fewer threads, and then again with
significantly more threads (where both cases perform the same amount of
work).

- Dennis
Technical Details
Message-ID: <3e6fd97b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e6deb3f@newsgroups.borland.com> <3e6e2fb9@newsgroups.borland.com> <3e6f8ce5$1@newsgroups.borland.com> <hq9v6vkjgup69jju5tdj5ltp9s72su9vlq@4ax.com> <3e6fb851$1@newsgroups.borland.com> <3e6fc46e$1@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-12 20:40:04 PST
From: "Dennis Jones" <djones@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e6deb3f@newsgroups.borland.com> <3e6e2fb9@newsgroups.borland.com> <3e6f8ce5$1@newsgroups.borland.com> <hq9v6vkjgup69jju5tdj5ltp9s72su9vlq@4ax.com> <3e6fb851$1@newsgroups.borland.com> <3e6fc46e$1@newsgroups.borland.com>
Subject: Re: Tweaking threads
Date: Wed, 12 Mar 2003 17:06:04 -0800
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: 204.200.27.7
Message-ID: <3e6fd97b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047517563 204.200.27.7 (12 Mar 2003 17:06:03 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail