q8z 0 Newbie Poster

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.