Auf Thema antworten

:oops: facepalm


Wie auch immer, vielen Dank.


Jetzt muss ich allerdings 4 Threads erstellen, und wie das über ein Array geht, verstehe ich noch nicht. Bisher habe ich das so, doch er kann angebliche threadsForPi nicht in threadsForPi[] konvertieren:


[code=Java]

threadsForPi threatObj[] = new threadsForPi();

       

        for(int laufend = 0;laufend <= cores; laufend++) {

           

            /*threadsForPi threadObj = new threadsForPi();

            threadObj.setModi(modi, loops);

            threadObj.start();*/

           

            threadObj[laufend] = new threadsForPi();

           

           

        }

[/code]


Könnte mir jemand nochmal auf die Sprünge helfen? Das wäre Super!



Oben