Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Methods to put CPU under load?

807580Apr 12 2010 — edited Apr 13 2010
Hello :)

I was wondering how I would go about putting stress onto a CPU. I'd like to stress the cores as much as possible, to test the stability of a system. Any ideas what methods I would use and how about I'd go doing it? I'd like to start it by pressing a button:
jToggleButton1 = new javax.swing.JToggleButton();

jToggleButton1.setText("Start Test");

jToggleButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
        jToggleButton1ActionPerformed(evt);
    }
});
All I'm asking for is some help onto how about I would go doing it, thanks :)
-Alex
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2010
Added on Apr 12 2010
46 comments
300 views