"Go" ddms description of the thread status

Source: Internet
Author: User

Because you need to focus on the threads in your app recently, you can view the threads of an app in DDMS:

You can see that each thread has its own status attribute, what does the different status represent?

running–executing application code– is executing the application and is processing the message exactly.
Sleeping–called Thread.Sleep () – Executes the Thread.Sleep () method, the thread yields the CPU and is hibernating.
Monitor–waiting to acquire a monitor lock– is waiting to acquire a listening lock and the thread is blocked.
Wait–in object.wait () – In the Object.wait () method, the thread is blocked.
Native–executing Native code– executes the native code, which is a normal state for threads with Message Queuing, indicating that Message Queuing has no messages, that the thread loops in the native code indefinitely until a new message appears in the message queue. Message Queuing will not return Java code processing messages.
Vmwait–waiting on a VM resource– is waiting for a virtual machine resource
Zombie–thread is in the process of dying– the thread is dead
Init–thread is initializing (u shouldn ' t see this) – The line is impersonating in the initialization (you won't be seeing this)
Starting–thread is on-to-start (you shouldn ' t seeing this either) – the thread is starting up (you won't see that either)

from:http://blog.csdn.net/zhouyingge1104/article/details/42556163

"Go" ddms description of the thread status

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.