Article View: comp.sys.powerpc
Article #3033Re: Debate: PowerMac "trounces" Pentium....???
From: Dan Pop
Date: Tue, 30 Jan 1996 21:46
Date: Tue, 30 Jan 1996 21:46
52 lines
2858 bytes
2858 bytes
Fredrik.Pettersson@sto1.wmdata.se writes:
>Dan Pop <danpop@mail.cern.ch> wrote:
>
>[snip]
>
>>Is it? Pray tell, how is MacOS multitasking the following "application":
>
>>main() { for(;;); }
>
>I did one of those on a NT at work and it really shared processor time nicely,
>100% to that process and nothing to the other applications.
If the other applications needed cpu time but didn't get it, the NT scheduler
is broken.
>So if you write your applications badly they will lock system more or less even
>in a preemtive environment.
Nope. In a sound preemtive environment cpu-bound applications don't lock
anything. Try to run N instances of the above "application" in an
otherwise idle VMS or Unix system and you'll see that the cpu resources
are evenly distributed between the N processes:
PID USERNAME PRI NICE SIZE RES STATE TIME CPU COMMAND
1723 danpop 50 0 2312K 147K run 0:01 11.20% forever
1671 danpop 50 0 2312K 147K run 0:02 11.10% forever
1752 danpop 50 0 2312K 147K run 0:02 11.10% forever
1810 danpop 50 0 2312K 147K run 0:02 11.10% forever
1777 danpop 50 0 2312K 147K run 0:01 11.10% forever
870 danpop 50 0 2312K 147K run 0:03 11.00% forever
1668 danpop 50 0 2312K 147K run 0:02 10.90% forever
1249 danpop 53 0 2312K 147K run 0:04 10.40% forever
The remaining percents were given to the other (non cpu-bound) processes
running on the system: the X server, the monitoring process which produced
the above output, etc.
cpu-bound applications are a fact of life on real computers, which handle
them without any kind of problems and completely transparent to the
programmer.
>Is it my ignorance or could I be right on this point?
It is your ignorance.
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:
<9601302146.AA21808@dxmint.cern.ch>Path:
arc1-ca.pugleaf.net!mail2news.demon.co.uk!hpl3sn03.cern.chReferences:
<4csn1n$klb@macshack.com> <DKxzFK.2r6@eskimo.com> <4d3m6o$bb6@macshack.com> <4d428mINNe14@anaconda.cis.ohio-state.edu> <4d9ui4$e63@macshack.com> <david-1401960302090001@s245_7.resnet.ucla.edu> <1996Jan26.192156@eigb> <jragosta-2601961539320001@ppp-1001.dca.net> <9601272105.AA17852@dxmint.cern.ch> <DLzvCC.JMD@artemis.sto.fdata.se>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: Tue, 30 Jan 1996 22:46:31 +0100 Organization: CERN European Lab for Particle Physics Message-ID: <9601302146.AA21808@dxmint.cern.ch> References: <4csn1n$klb@macshack.com> <DKxzFK.2r6@eskimo.com> <4d3m6o$bb6@macshack.com> <4d428mINNe14@anaconda.cis.ohio-state.edu> <4d9ui4$e63@macshack.com> <david-1401960302090001@s245_7.resnet.ucla.edu> <1996Jan26.192156@eigb> <jragosta-2601961539320001@ppp-1001.dca.net> <9601272105.AA17852@dxmint.cern.ch> <DLzvCC.JMD@artemis.sto.fdata.se> 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