जावा मल्टीथ्रेडिंग प्रोग्राम को डिबग करते समय मैंने ब्रेकपॉइंट्स डाले। स्टार्ट विधि के बाद नियंत्रण का आह्वान करना menthod चलाने वाला नहीं है, तो कृपया मुझे डीबग प्रक्रिया बताएं।ग्रहण मल्टीथ्रेड प्रोग्राम डीबगिंग
नमूना कोड
class Test extends Thread {
public static void main(String[] args) {
try {
Thread t = new Thread(new Test());
t.start();
t.start();
} catch (Exception e) {
System.out.print("e ");
}
}
public void run() {
for(int i = 0; i < 2; i++)
System.out.print(Thread.currentThread().getName() + " ");
}
}
कृपया अधिक स्पष्ट या कुछ कोड प्रदान करें। – GGrec