Java threads problems encountered and solutions JNI call
Debugging the problem can be thread through optimizeit software to monitor its performance
1, Thread processThread = new Thread (
New ICMPPongRunnable (pingHandle));
ProcessThread.start ();
This thread will cause the use of threads unable to release resources, allowing the system to increase the number of threads, the solution is not to define the use of anonymous type threads.
2, the problem can not stop threads
PingThread.interrupt is called () and then to capture this thread interrupted abnormal withdraw from the
3, as far as possible the use of threads called JNI function
Tags: java jni
Releated Java Articles
July 11, 2006 | Filed Under Java Enterprise Edition |






