Salve,
Volevo chiedervi se è possibile fare una cosa del genere:
Ho creato un Thread1 principale , dentro il Thread1 principale ho creato un secondo Thread2.
Vorrei sapere se è possibile richiamare un metodo del Thread2 dal Thread1.
Esempio:
//START THREAD 1
class CLASSE1{
CLASSE2.calcola(10,5);
}
//END THREAD 1
//START THREAD 2
class CLASSE2{
public int calcola(int x, int y){
return x + y;
}
}
//END THREAD 2