android - What are the Dalvik thread states? -


Every ANR dump lists states of all threads at the time of ANR. I know that wAIT means but what is the suspension and monitor mean?

Thanks in advance ... Summary of the dalvik thread:

  • The beginner - Not yet running.

  • Startup - not yet running, but almost there.
  • Zoombe - dead (you should not see it).
  • Running (A / K / One Runnable) - Thread is actively running VM is to suspend all threads to dump the stack, so you usually have to skip any thread Will not see this.
  • Wait - Waiting for the thread () and waiting patiently.
  • TIMED_WAIT - Waiting for the thread (), with a timeout (Thread.sleep) is implemented as a timed waiting.)
  • Monitor - Thread on a monitor lock Blocked, meaning it is stuck in an attempt to enter the "Synchronized" block.
  • Native - thread is implemented in native code VM does not suspend the thread in the original code unless it is the JNI call (on which they transit to run, and then immediately suspend) .
  • VMWIT - thread is blocked for receiving a VM resource, such as an internal Mute X or it may be waiting to do something (e.g., Compiler and GC Threads).
  • Suspended - Thread was runable, but it has been suspended. As mentioned earlier, stack dumper prefers to suspend all threads before covering your thread, so your busy threads will usually be shown in such a way. (In the old releases, this situation was not present, the use of "suspended" was "running with a non-casual cache".)

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -