The thread command lists or changes the current thread.
Display current thread.
Switch to thread thread-ID.
In the following variations, the current thread is assumed if a thread ID is not specified.
Print everything known about the specified thread. For OpenMP threads, the information includes the OpenMP thread ID, parallel region ID, task region ID, and thread state.
Hide the specified (or current) thread. It will not show up in the generic threads listing.
Unhide the specified (or current) thread.
Unhide all threads.
Keep the specified thread from ever running. A suspended thread shows up with an “S” in the threads list.
Undo the effect of -suspend.
List all locks held by the specified thread blocking other threads.
Show which synchronization object the specified thread is blocked by, if any.
where:
thread-ID is a thread ID.
Display current thread.
Switch to thread thread-ID.
In the following variations, the current thread is assumed if a thread ID is not specified.
Print everything known about the specified thread.
Hide the specified (or current) thread. It will not show up in the generic threads listing.
Unhide the specified (or current) thread.
Unhide all threads.
Keep the specified thread from ever running. A suspended thread shows up with an “S” in the threads list.
Undo the effect of -suspend.
Lists the Java monitor owned by thread-ID.
Lists the Java monitor on which thread-ID is blocked.
where:
thread-ID is a dbx-style thread ID of the form t@number or the Java thread name specified for the thread.