Article View: borland.public.cppbuilder.nativeapi
Article #11882Re: Poor thread performance on multi-CPU machines
From: Vladas
Date: Fri, 09 Jan 2004 22:47
Date: Fri, 09 Jan 2004 22:47
27 lines
2029 bytes
2029 bytes
As far as I know one process can use only one CPU at a time. Even if you
have several threads that is still one process. Let's say you have 2 CPU
system. That means your application can have 50% CPU utilization max.
Vladas
"Arnie Mauer" <xxx@nowhere.net> wrote in message
news:3fff05ce$1@newsgroups.borland.com...
> Sorry if this is a bit vague, but was wondering if anyone else has run
into
> it.
>
> We have a service app that handles input requests from a TCP/IP port on
one
> end, does some business logic, sends a request to a DB server, gets info
and
> sends it out again. Both the front and backend of the app uses thread
pools
> and I/O completion is used for the comm end. The threads use critical
> sections where necessary.
>
> It turns out that running the app on a single CPU desktop achieves higher
> throughput than running on a 2 or 4 CPU server. Does anyone have any idea
> why this might be? Thanks,
>
> - Arnie
>
>
Technical Details
Message-ID:
<3fff2f6f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3fff05ce$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6aabc16a59635b8c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-09 14:58:41 PST Reply-To: "Vladas" <vladas1@hotmail.com> From: "Vladas" <vladas1@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fff05ce$1@newsgroups.borland.com> Subject: Re: Poor thread performance on multi-CPU machines Date: Fri, 9 Jan 2004 14:47:00 -0800 Lines: 29 Organization: GLDS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.129.159.33 Message-ID: <3fff2f6f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073688431 67.129.159.33 (9 Jan 2004 14:47:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail