what is recommended to do if the connection of streams does not work?
for (List t : threads) { try { t.join(); } catch (InterruptedException e) { log.error("Thread " + t.getId() + " interrupted: " + e);
Is it then recommended to interrupt (what happens then with other threads that are not yet merged?) or should you at least try to join the other threads and then continue?
Thanks for the tips!
==> Conclusion . You must try joining a specific thread t again, or you must abort this specific thread t and continue.
for (List t : threads) { try { t.join(); } catch (InterruptedException e) { try {
so what do you think of this decision? and whether it is correct to do "t.interrupt ()" or should there be Thread.currentThread (). interrupt ();
thanks!: -)
nano7 source share