🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Tweaking threads

#17509
From: Remy Lebeau (TeamB)
Date: Thu, 13 Mar 2003 01:35
36 lines
2665 bytes
"Dennis Jones" <djones@nospam.com> wrote in message
news:3e6fd97b$1@newsgroups.borland.com...

> 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?

Both, actually.

> 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).

Most of those threads are doing the exact same thing (processing the same
kind of data, just from different sources), so I don't really see how one
can be seen as more efficient as another from the OS's perspective

> Is it possible for your application to operate with fewer
> threads (say, 4 or 5)?

No, it is not (ithout a major if not complete re-write of the app, which is
in the millions of lines of code now).  Each thread is tied to a particular
source of incoming data from various hardware.  Because of the nature of the
data (real-time live feed), even trying to merge two of those threads into a
single thread to handle both sources would probably degrade both operations
from the application's point of view.  Even if it didn't, and we merged them
2 at a time, we'd still need much more than just 4-5, we'd still need closer
to 30-40.


Gambit
Technical Details
Message-ID: <3e6fde38$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!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> <3e6fd97b$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:39:36 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.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> <3e6fd97b$1@newsgroups.borland.com>
Subject: Re: Tweaking threads
Date: Wed, 12 Mar 2003 17:35:32 -0800
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e6fde38$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047518776 207.175.226.26 (12 Mar 2003 17:26:16 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!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