|
-
Jan 16th, 2006, 10:21 PM
#1
Thread Starter
Hyperactive Member
need to max out my cpu via code
i need to run my cpu at 100% to test the cooling of the system. i know how to write code to max out the ram but what can i do to max out the cpu?
(i know this is random but any help is welcomed)
-
Jan 16th, 2006, 10:42 PM
#2
Re: need to max out my cpu via code
Just use an endless loop that does some relatively complex calculation inside.
-
Jan 17th, 2006, 01:14 AM
#3
Re: need to max out my cpu via code
A simple Do Loop without anything inside of it should do the trick...
-
Jan 17th, 2006, 02:07 AM
#4
Re: need to max out my cpu via code
how about an endless loop which creates more threads, o there is no way its usage can be restricted
VB Code:
Do
Dim t As New Threading.Thread(AddressOf LoopMe)
t.Start
Loop
Sub LoopMe
Do
Loop
End Sub
good luck stopping the program once you run it though.
-
Jan 17th, 2006, 02:19 AM
#5
Re: need to max out my cpu via code
If you have a multi-core processor then you'll need to use additional threads. That's why just a loop wouldn't work for me. Obviously making the loop more complex wouldn't have worked either, but I never said i was smart.
-
Jan 17th, 2006, 06:55 AM
#6
Fanatic Member
Re: need to max out my cpu via code
call threading.thread.currentthread.sleep
-
Jan 17th, 2006, 06:57 AM
#7
Re: need to max out my cpu via code
 Originally Posted by alexandros
call threading.thread.currentthread.sleep
they want to max out the cpu not freeze the current application
-
Jan 17th, 2006, 10:52 AM
#8
Re: need to max out my cpu via code
 Originally Posted by jmcilhinney
If you have a multi-core processor then you'll need to use additional threads. That's why just a loop wouldn't work for me.
You trying to brag?? *sniff sniff* I only have one core...
-
Jan 17th, 2006, 11:10 AM
#9
Thread Starter
Hyperactive Member
Re: need to max out my cpu via code
i will give it a shot, my laptop is acting a little weird and i wanted to do some testing before i take it back for warranty work.
thanks for the ideas!
-
Jan 17th, 2006, 01:16 PM
#10
Fanatic Member
Re: need to max out my cpu via code
why do you need to do this
are you checking for accuracy under load becuase you might want to add a test or something on there
-
Jan 17th, 2006, 02:54 PM
#11
Addicted Member
Re: need to max out my cpu via code
 Originally Posted by Crash893
why do you need to do this
are you checking for accuracy under load becuase you might want to add a test or something on there
i need to run my cpu at 100% to test the cooling of the system. i know how to write code to max out the ram but what can i do to max out the cpu?
Thats why he needs to do it... =)
If i gave you good code/help, then dont forget to RATE
Dont forget to mark your thread [Resolved] with the tools from the menu above...
-
Jan 17th, 2006, 06:29 PM
#12
Fanatic Member
Re: need to max out my cpu via code
how can you test if its cooling properly if its not testing the math of the cpu?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|