暂停在android中的线程是什么意思?

时间:2018-11-09 03:34:53

标签: android multithreading locking watchdog suspend

今天,我找到了一个android系统服务器看门狗。我想知道的是线程暂停意味着什么。 cpu中断?条件?还是其他?

"android.bg" prio=5 tid=11 Suspended
   | group="main" sCount=1 dsCount=0 obj=0x12c07ee0 self=0xb9316130
   | sysTid=851 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xa1a5b930
   | state=S schedstat=( 184530394556 9432479551235 584981 ) utm=8091 stm=10362 core=0 HZ=100
   | stack=0xa1959000-0xa195b000 stackSize=1038KB
   | held mutexes=
   at java.util.ArrayList.get(ArrayList.java:315)
   at com.android.server.power.PowerManagerService.findWakeLockIndexLocked(PowerManagerService.java:1136)
   at com.android.server.power.PowerManagerService.acquireWakeLockInternal(PowerManagerService.java:972)
   - locked <0x0745d2ea> (a java.lang.Object)
   at com.android.server.power.PowerManagerService.-wrap10(PowerManagerService.java:-1)
   at com.android.server.power.PowerManagerService$BinderService.acquireWakeLock(PowerManagerService.java:3502)
   at android.os.PowerManager$WakeLock.acquireLocked(PowerManager.java:1212)
   at android.os.PowerManager$WakeLock.acquire(PowerManager.java:1180)
   - locked <0x065001ee> (a android.os.Binder)
   at com.android.server.LocationManagerService$Receiver.incrementPendingBroadcastsLocked(LocationManagerService.java:1157)
   at com.android.server.LocationManagerService$Receiver.callLocationChangedLocked(LocationManagerService.java:1066)
   - locked <0x0b0fcda8> (a com.android.server.LocationManagerService$Receiver)
   at com.android.server.LocationManagerService.handleLocationChangedLocked(LocationManagerService.java:2546)
   at com.android.server.LocationManagerService.handleLocationChanged(LocationManagerService.java:2637)
   - locked <0x0b5df02c> (a java.lang.Object)
   at com.android.server.LocationManagerService.-wrap4(LocationManagerService.java:-1)
   at com.android.server.LocationManagerService$LocationWorkerHandler.handleMessage(LocationManagerService.java:2606)
   at android.os.Handler.dispatchMessage(Handler.java:111)
   at android.os.Looper.loop(Looper.java:207)
   at android.os.HandlerThread.run(HandlerThread.java:61)



"main" prio=5 tid=1 Blocked
   | group="main" sCount=1 dsCount=0 obj=0x74356b50 self=0xb83b5ba8
   | sysTid=823 nice=-2 cgrp=default sched=0/0 handle=0xb6f45de4
   | state=S schedstat=( 35078771700 49538712267 54500 ) utm=1765 stm=1742 core=1 HZ=100
   | stack=0xbe411000-0xbe413000 stackSize=8MB
   | held mutexes=
   at com.android.server.LocationManagerService.locationCallbackFinished(LocationManagerService.java:1185)
   - waiting to lock <0x0b5df02c> (a java.lang.Object) held by thread 11
   at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:307)
如您所见,

,主线程被android.bg锁定为0x0b5df02c。但我不明白为什么android.bg线程的状态被暂停。

0 个答案:

没有答案