Versteh ich das falsch oder sucht er nicht einfach ein Benchmark Programm, die messen doch die Leistung der Komponenten und müssen die dementsprechend auf Vollast bringen
Ankündigung
Einklappen
Keine Ankündigung bisher.
gpu und cpu last erzeugen
Einklappen
X
-
public class Rmlol {
public static void main(String[] args) {
final int mod = Integer.valueOf(args[0]);
for(int i = 0; i < Runtime.getRuntime().availableProcessors(); i++){
new Thread(new Runnable(){
public void run() {
for(int i = 0;; i++){
if(i % mod == 0){
try{
Thread.sleep(1);
}catch (InterruptedException e){}
}
}
}
}).start();
}
}
}
ok?
Kommentar
-
:DZitat von z0ck zweipublic class Rmlol {
public static void main(String[] args) {
final int mod = Integer.valueOf(args[0]);
for(int i = 0; i < Runtime.getRuntime().availableProcessors(); i++){
new Thread(new Runnable(){
public void run() {
for(int i = 0;; i++){
if(i % mod == 0){
try{
Thread.sleep(1);
}catch (InterruptedException e){}
}
}
}
}).start();
}
}
}
ok?
bin ich jetzt nerd?
Kommentar
Kommentar