onstat -g wmx command: Print all mutexes with waiters
Use the onstat -g wmx command to display all of the mutexes with waiters.
Example output
Figure 1. onstat
-g wmx command output
Mutexes with waiters:
mid addr name holder lkcnt waiter waittime
134825 7000002043a9148 free_lock 11009 0 200 22921
11010 22918
Output description
- mid
- Internal mutex identifier
- addr
- Address of locked mutex
- name
- Name of the mutex
- holder
- Thread ID of the thread that is holding the mutex
- 0 = The read/write mutex is held in shared mode
- lkcnt
- For a read/write mutex, the current number of threads that are locking the mutex in shared mode. For a relockable mutex, the number of times the mutex was locked or relocked by the thread that is holding the mutex.
- waiter
- List of IDs of the threads that are waiting for this mutex
- waittime
- Amount of time in seconds that the thread is waiting