9
जावा में थ्रेड को ठीक से कैसे रोकें?
मुझे जावा में धागे को ठीक से बंद करने के लिए एक समाधान की आवश्यकता है। मेरे पास IndexProcessorक्लास है जो रननेबल इंटरफ़ेस को लागू करता है: public class IndexProcessor implements Runnable { private static final Logger LOGGER = LoggerFactory.getLogger(IndexProcessor.class); @Override public void run() { boolean run = true; while …