this is the wat i make new thread:
public void startThread(){
if (threadIsActivate==false){
new myThread(this);
threadIsActivate = true;
}
}
and this is my constructor :
public myThread(Object o) {
this.o = o;
Thread thread = new Thread(this);
thread.start();
}
//in object the thread make changes
all the time after I make a connection to the internet my :
totalMemory-freeMemory
get bigger by 20000
how can I build a frugal thread?