Article View: borland.public.cppbuilder.nativeapi
Article #11892Re: Poor thread performance on multi-CPU machines
From: Alan Bellingham
Date: Sat, 10 Jan 2004 01:20
Date: Sat, 10 Jan 2004 01:20
23 lines
1968 bytes
1968 bytes
"Vladas" <vladas1@hotmail.com> wrote: >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. As Gambit points out, your knowledge is insufficient. A _thread_ can only execute on one CPU (or pseudo-CPU in the case of Hyperthreading), but the multiple threads of a process are certainly allowed to invade as many different processors as they like. Big database applications usually insist on multi-CPU systems exactly so that their multiple threads can use more power. (This all assumes you're CPU bound anyway. There are plenty of apps which are I/O bound.) Alan Bellingham -- Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/> ACCU - C, C++ and Java programming <url:http://accu.org/> The 2004 Discworld Convention <url:http://dwcon.org/>
Technical Details
Message-ID:
<pgkuvv0l8c4cdh8anfkjlpq7h86nr6fofd@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fff05ce$1@newsgroups.borland.com> <3fff2f6f$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 17:39:36 PST From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Poor thread performance on multi-CPU machines Date: Sat, 10 Jan 2004 01:20:08 +0000 Reply-To: alanb@episys.com Message-ID: <pgkuvv0l8c4cdh8anfkjlpq7h86nr6fofd@4ax.com> References: <3fff05ce$1@newsgroups.borland.com> <3fff2f6f$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.49.31.105 X-Trace: newsgroups.borland.com 1073697606 62.49.31.105 (9 Jan 2004 17:20:06 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail