
I use visualVM connect a multi thread Java application, thread has 4 status, namely running, sleeping, wait, Monitor. What does this Monitoring status mean? What’s the difference between wait and Monitor?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
These states are the same as mentioned in the
Thread.Stateenum. “Wait” means, as the documentation says:“Monitor” is the
BLOCKEDstate, in which the thread is waiting to obtain a lock on an object (because it’s trying to enter asynchronizedblock or method while another thread already holds the associated lock).