I create some threads:
public class NewUser extends Thread{
public int userID;
public long waitingSeconds;
Timer timer;
public NewUser(int UserID, long WaitingSeconds){
this.userID = UserID;
this.waitingSeconds = WaitingSeconds;
}
public void run(){
timer = new Timer();
timer.schedule(timerTask, waitingSeconds*1000);
}
}
In other class:
NewUser user = New NewUSer(4,604800); //one week
user.start();
I would like to kill all the "NewUser" threads, but I don't know how to find it in my ubuntu.
How should I get them?