Timeline:activity_launch_request time:65620
04-14 15:31:25.347:I/DALVIKVM (3483): Total arena pages for jit:11
04-14 15:31:25.621:D/DALVIKVM (3483): JIT Unchain all for threadid=13
04-14 15:31:26.371:W/DALVIKVM (3483): Threadid=1:spin on suspend #1 threadid=13 (pcf=0)
04-14 15:31:27.122:W/DALVIKVM (3483): Threadid=1:spin on suspend #2 threadid=13 (pcf=0)
04-14 15:31:27.122:I/DALVIKVM (3483): "Main" prio=5 tid=1 RUNNABLE
JIT Unchain All for threadid=19
04-14 15:33:28.638:W/DALVIKVM (5595): Threadid=20:spin on suspend #1 threadid=19 (pcf=0)
04-14 15:33:29.388:W/DALVIKVM (5595): Threadid=20:spin on suspend #2 threadid=19 (pcf=0)
04-14 15:33:29.388:I/DALVIKVM (5595): "Pool-5-thread-2" prio=5 tid=20 RUNNABLE
Call while (!iscomplete) multiple times while running the application; Blocking threads, causing thread resource consumption to be high. Modify the implementation method to reduce resource consumption
while (!iscomplete) {
try {
Thread.Sleep (100);
} catch (Interruptedexception e) {
TODO auto-generated Catch block
LOG.E (e);
}
Continue
}
A program crashes due to high resource consumption caused by the Android while loop