Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <000401c4639d$e7d7a060$0a99fa04@2mbit.com> From: "Brian Bruns" To: , References: Date: Tue, 6 Jul 2004 15:03:51 -0400 MIME-Version: 1.0 Received-SPF: neutral (everest.sosdg.org: 4.250.153.10 is neither permitted nor denied by domain of 2mbit.com) X-Scan-Signature: f4a2161a70e9ca874377242522da36ff X-SA-Exim-Connect-IP: 4.250.153.10 X-SA-Exim-Mail-From: bruns AT 2mbit DOT com Subject: Re: two instances of a.exe on dual processor - still only 50% performance Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on everest.sosdg.org X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=9.0 tests=BAYES_00 autolearn=no version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-SA-Exim-Version: 4.0 (built Wed, 05 May 2004 12:02:20 -0500) X-IsSubscribed: yes Note-from-DJ: This may be spam On Tuesday, July 06, 2004 2:16 PM [EST], mathias DOT wagner AT philips DOT com wrote: > Hi guys, > > I've tried to plough through your archives on dual processors and > somebody said that when you've got a dual processor machine, one > has to start two instances of one's program to get both processors > working - one on each job. Fine, this is what I used to do on a DEC > Apha, but on my Windows box this does not seem to be the case. I > still get only 50% out of the box when checking with taskmgr... > What am I doing wrong? Do I need to write "multi-threaded", > whatever that is? Doesn't seem to make much sense to me. Two > perfectly independent jobs should run just fine along each other, > using both CPUs to the maximum... > > Many thanks for any help! > > Mathias From my experience, you have to set the process's processor affinity (my spelling sucks). In windows, this can be done IIRC by using the task manager. You tell it which processor you want the process to run on exclusively. Of course, this was many years ago when I last played with dual processors on a Windows machine (why waste such system power with an OS like Windows when Linux can make the most of it?). Ahh the days of dual PPro 200s and Windows 2000 Pro :) -- Brian Bruns The Summit Open Source Development Group Open Solutions For A Closed World / Anti-Spam Resources http://www.sosdg.org The Abusive Hosts Blocking List http://www.ahbl.org -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/