Go to main content
Oracle® Developer Studio 12.5: Debugging a Program with dbx

Exit Print View

Updated: June 2016
 
 

threads Command

The threads command lists all threads.

Native Mode Syntax

threads

Print the list of all known threads.

threads -all

Print threads normally not printed (zombies).

threads -mode all|filter

Controls whether all threads are printed or threads are filtered. The default is to filter threads. When filtering is on, threads that have been hidden by the thread -hide command are not listed.

threads -mode auto|manual

Under the IDE, enables automatic updating of the thread listing.

threads -mode

Echo the current modes.

    Each line of information is composed of the following:

  • An * (asterisk) indicating that an event requiring user attention has occurred in this thread. Usually this is a breakpoint.

    An 'o’ instead of an asterisk indicates that a dbx internal event has occurred.

  • An > (arrow) denoting the current thread.

  • t@num, the thread ID, referring to a particular thread. The number is the thread_t value passed back by thr_create.

  • b l@num meaning the thread is bound (currently assigned to the designated LWP), or a l@num meaning the thread is active (currently scheduled to run).

  • The “Start function” of the thread as passed to thr_create. A ?() means that the start function is not known.

  • The thread state, which is one of the following:

    • monitor

    • running

    • sleeping

    • unknown

    • wait

    • zombie

    The function that the thread is currently executing.

Java Mode Syntax

threads

Print the list of all known threads.

threads -all

Print threads normally not printed (zombies).

threads -mode all|filter

Controls whether all threads are printed or threads are filtered. The default is to filter threads.

threads -mode auto|manual

Under the IDE, enables automatic updating of the thread listing.

threads -mode

Echo the current modes.

    Each line of information in the listing is composed of the following:

  • An > (arrow) denoting the current thread

  • t@number, a dbx-style thread ID

  • The thread state, which is one of the following:

    • monitor

    • running

    • sleeping

    • unknown

    • wait

    • zombie

  • The thread name in single quotation marks

  • A number indicating the thread priority