Article View: comp.sys.powerpc
Article #3082Re: Debate: PowerMac "trounces" Pentium....???
From: Dan Pop
Date: Wed, 07 Feb 1996 12:49
Date: Wed, 07 Feb 1996 12:49
50 lines
2599 bytes
2599 bytes
nevin@CS.Arizona.EDU (Nevin ":-]" Liber) writes:
>In article <kevinbDMCMIy.B26@netcom.com>, kevin@frobozz.sccsi.com (Kevin
>Brown) wrote:
>
>> Fine. Then try running a "brain-dead" program like this instead:
>
>> main()
>> {
>> while ( there_is_useful_work_to_be_done )
>> {
>> do_the_computationally_intensive_useful_work();
>> }
>> display_the_results();
>> }
>
>> where there_is_useful_work_to_be_done remains true for long periods of
>> time (minutes, hours, perhaps even days).
>
>So, you can't figure out how to get this to work well on a Mac, eh?
>Hmmmm... <in deep thought for 4.2 seconds> How about putting a
>WaitNextEvent() call in one of the inner loops of
>do_the_computationally_intensive_useful_work();?
Sounds easy, doesn't it? Unfortunately, it's a little bit more complicated:
- If you put it in an inner loop, you risk to spend more cpu time in
WaitNextEvent() than in doing real work.
- If you put in an outer loop, you risk to have a system with a poor
interactive response, once the cpu-bound process has got the cpu.
- Even if you tune it well on your system, it won't work as well on a
slower machine or on the same machine when you restructure the program.
>I can't wait to see your next completely contrived example that you can't
>figure out how to solve that the rest of us can trivally solve.
Trivial solutions are not necessarily good solutions.
CMT just doesn't cut it well for cpu-bound applications running in
background, which shouldn't care at all about scheduling issues, which
aren't their business in the first place.
Dan
--
Dan Pop
CERN, CN Division
Email: danpop@mail.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
Technical Details
Message-ID:
<9602071249.AA22374@dxmint.cern.ch>Path:
arc1-ca.pugleaf.net!mail2news.demon.co.uk!hpl3sn03.cern.chReferences:
<4csn1n$klb@macshack.com> <jragosta-2601961539320001 <19960201.11A2980.E21F@olympus.net> <nevin-0302960411460001@150.135.1.79> <kevinbDMCMIy.B26@netcom.com> <nevin-0602962253080001@150.135.1.79>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!hpl3sn03.cern.ch From: Dan Pop <danpop@mail.cern.ch> Newsgroups: comp.sys.powerpc,comp.os.linux.advocacy,comp.sys.mac.advocacy,comp.os.os2.advocacy,comp.sys.amiga.advocacy,comp.sys.intel Subject: Re: Debate: PowerMac "trounces" Pentium....??? Date: Wed, 7 Feb 1996 13:49:40 +0100 Organization: CERN European Lab for Particle Physics Message-ID: <9602071249.AA22374@dxmint.cern.ch> References: <4csn1n$klb@macshack.com> <jragosta-2601961539320001 <19960201.11A2980.E21F@olympus.net> <nevin-0302960411460001@150.135.1.79> <kevinbDMCMIy.B26@netcom.com> <nevin-0602962253080001@150.135.1.79> X-NNTP-Posting-Host: hpl3sn03.cern.ch X-Newsreader: NN version 6.5.0 #7 (NOV) X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch