Article View: borland.public.cppbuilder.nativeapi
Article #11887Re: Poor thread performance on multi-CPU machines
From: Remy Lebeau (TeamB)
Date: Fri, 09 Jan 2004 23:45
Date: Fri, 09 Jan 2004 23:45
25 lines
2035 bytes
2035 bytes
"Vladas" <vladas1@hotmail.com> wrote in message news:3fff2f6f$1@newsgroups.borland.com... > As far as I know one process can use only one CPU at a time. Not true. On a multi-processor machine, a single process can have multiple threads running on different processors at the same time. > Even if you have several threads that is still one process. A process is just a container of memory and threads. It is not executable itself, the threads are the actual executable modules of a process. Those threads can be set to run on different processors simultaneously. > Let's say you have 2 CPU system. That means your application > can have 50% CPU utilization max. Where did you ever get that from? Even with just 1 thread on 1 CPU, a process can get as high at 100% utilization. With 2+ threads on 2 CPUs, you could get 100*2% utilization just as easily. A processor is still a processor, and a thread is still a thread, it doesn't matter how many there are. Gambit
Technical Details
Message-ID:
<3fff3bc0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!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 15:54:12 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fff05ce$1@newsgroups.borland.com> <3fff2f6f$1@newsgroups.borland.com> Subject: Re: Poor thread performance on multi-CPU machines Date: Fri, 9 Jan 2004 15:45:48 -0800 Lines: 27 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.22.138.253 Message-ID: <3fff3bc0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073691584 67.22.138.253 (9 Jan 2004 15:39:44 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail