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)
Printable View
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)
Just use an endless loop that does some relatively complex calculation inside.
A simple Do Loop without anything inside of it should do the trick...
VB Code:
Do Loop
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.
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. :(
call threading.thread.currentthread.sleep
they want to max out the cpu not freeze the current applicationQuote:
Originally Posted by alexandros
You trying to brag?? :) *sniff sniff* I only have one core... :(Quote:
Originally Posted by jmcilhinney
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!
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
Quote:
Originally Posted by Crash893
Thats why he needs to do it... =)Quote:
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?
how can you test if its cooling properly if its not testing the math of the cpu?