April 16, 2003 at 8:47 am
Is there a script that generate 100% processor utilization (in single or multiple processors machines) to any hardware configuration? That's good to show if a programmer doesn't work right, this can occurs...
April 16, 2003 at 9:16 am
I'm guessing it's possible but this would show poor coding. Do you have a script that is currently doing this?
Darren
Darren
April 16, 2003 at 9:17 am
Any mathematical operation running in infinite loop might consume CPU 100%.
For example if you are familiar with VB then you can try following code
dim lngIndex as Long
Do while true
lngIndex = lngIndex + 1
lngIndex = lngIndex - 1
loop
When you run this cpu consumption shows 100%.
However, I am not sure and cannot guarantee about multi processor and in any configuration will this happen.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply