thread
Command Function
Displays information about a single thread or all threads and sets the debugging scope.
Syntax
Displaying information about all threads:
thread list [-h | --help]
Displaying information about a single thread:
thread info [-h | --help] {THREAD_INDEX}
Setting the debugging scope:
thread set [-h | --help] {THREAD_INDEX}
- The thread command can be abbreviated as t, for example, t info 1.
- The THREAD_INDEX parameter is mandatory and must be a positive integer.
Parameter Description
Parameter |
Description |
|---|---|
None |
Displays information about all threads. |
-h/--help |
Obtains help information. This parameter is optional. |
Parameter |
Description |
|---|---|
{THREAD_INDEX} |
Replace {THREAD_INDEX} with the actual thread index to view information about a single thread, for example, thread info 1. |
-h/--help |
Obtains help information. This parameter is optional. |
Parameter |
Description |
|---|---|
{THREAD_INDEX} |
Replace {THREAD_INDEX} with the actual thread index to set the debugging scope, for example, thread set 1. |
-h/--help |
Obtains help information. This parameter is optional. |
Example
Display the information about thread functions:
1 | thread -h
|
Command output:
1 2 3 4 5 | The most commonly used thread(t) sub commands are: list Displays all threads in the current rank. info Displays the specified thread in the current rank. set Specifies the currently operated thread. See 'thread(t) COMMAND -h/--help' for more information on a specific command. |