Will the thread just terminate after its completion?
This is how I initialize my thread:
new Thread(new Runnable() { public void run() { } }).start();
Basically, what I'm trying to do is just do one task in a new thread and then end the thread. However, after a while I will start another one, etc. I donβt want a lot of threads to start, and I wonder if the thread will end after it completes?
Thanks.
source share