Answer the question
In order to leave comments, you need to log in
How to make a time limit on the lifetime of a thread in Java?
How to make a time limit on the lifetime of a thread in Java?
I'm working with threads mostly with via array of threads + .join:
for (Advert adv : getAdverts()) {
try {
adv.join();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question