Will a thread simply terminate after it has completed its execution?
This is how I initialize my thread:
new Thread(new Runnable() {
public void run() {
}
}).start();
Basically what I am trying to do simply execute a single task on a new thread and then terminate the thread. However, after some time I will start another one and so forth. I don't want to have a bunch of threads started and I am wondering if the thread will terminate itself after complete ting it's execution?
Thanks.