multithreading - How to properly stop the Thread in Java - Stack Overflow

multithreading - How to properly stop the Thread in Java - Stack Overflow

瀏覽:947
日期:2024-05-04
I need a solution to properly stop the thread in java. I have IndexProcessorclass which implements the Runnable interface: public class IndexProcessor implements Runnable { private static fi... ... Using Thread.interrupt() is a perfectly acceptable way of...看更多