The Processes and Threads View
The Processes and Threads view allows you to examine all processes and threads in your debugging session, and to organize them into aggregate groupings based on attributes. In
Figure 74, the processes and threads are grouped by share group, process state, function, thread ID, and thread state.
There are four processes and a total of 12 threads (not all visible).
The share group is the set of processes executing the same program, and the executable program name is indicated in its attribute.
The focus is on thread
1.1, thread
1 of process
1, as indicated by its
bold format.
The thread of focus determines the display in the Call Stack, Local Variables (VAR) view, the Source view, and the Data view.
Note that the status of processes and threads is highlighted by colored icons for easy identification. The “Mixed” icon identifies a process whose threads are in different states.
Customizing the Display using “Group By”
If the “Select process or thread attributes to group by” panel is not visible, click the gear icon (
) to open it.
Checked selections appear in the View pane in the order that they appear in the “Group by” list. To change the order, select items in the list and use the up and down arrows. Reset restores the initial order. To hide the list, double-click its banner; redisplay it by double-clicking on the banner again or clicking the gear icon.
The Processes & Threads View Layout
The
Description column shows the aggregate groupings that are active for the current program state.
The columns
#P and
#T show the number of processes and threads with a given set of attributes. For example, three threads from different processes are stopped at a breakpoint in the
snore function.
The
Members column summarizes the processes and threads in
ptlist format. For example, for the
snore function,
p3.1, p2.2, p4.2 indicates that
thread 1 of
process 3 and
thread 2 of processes
2 and
4 are stopped at this function.
Customizing the Process and Threads View Pane
Control which columns to display by right-clicking in the banner and selecting column names to display or hide.
View a tabular representation of process and thread state by clicking the tabular icon (
):
Sort the display by clicking on any of the column headers in either the tree or tabular view. To change the sort order between descending and ascending, click the column header again.
Here, the table has been sorted by Function, identified by the down arrow in the Function column header.
Customize multiple views using the three View icons (
). Each view is independent and can have any combination and order of attributes. This provides a convenient way to have several different views into your program.