SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : Intel Corporation (INTC)
INTC 36.15-0.6%Dec 24 12:59 PM EST

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: wanna_bmw who wrote (150354)11/29/2001 3:29:24 PM
From: kapkan4u  Read Replies (2) of 186894
 
<You seem to be avoiding the question. If what you say is correct, and a 2GHz Pentium 4 actually is predominately run at 1GHz, then how come it can beat a Pentium III at 1GHz by vast margins. >

Someone who has a P4 box (I don't) can try this code. My guess is that 2.0GHz P4 will run this code slower then 600MHz PIII Coppermine. Maybe much slower.

#include <time.h>
#include <stdlib.h>

extern int sum;

int main()
{
int i;
srand( (unsigned)time( NULL ) );
for( i = 0; i < 1000000;i++ )
switch ( rand() % 100000 ){
case 0: sum += 1;
case 1: sum += 2;
case 2: sum += 3;
...
case 99999: sum += 100000;
}
return sum;
}
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext