3 ms·
yeah, calling Thread.interrupt(), join() or similar methods are often a code smell for a bad "programming 101" teacher. Executors are the way to go for almost
by silvestrov 6y ago
yeah, calling Thread.interrupt(), join() or similar methods are often a code smell for a bad "programming 101" teacher.
Executors are the way to go for almost all finite-time concurrency.
New threads should normally only be used for stuff that keeps running until the process quits.