Setting Groups

This section presents a series of examples that set and create groups. Many of the examples use CLI commands that have not yet been introduced. You will probably need to refer to the command's definition before you can appreciate what is occurring.

Here are some methods for indicating that thread 3 in process 2 is a worker thread.

dset WGROUP(2.3) $WGROUP(2)

Assigns the group ID of the thread group of worker threads associated with process 2 to the WGROUP variable. (Assigning a nonzero value to WGROUP indicates that this is a worker group.)

dset WGROUP(2.3) 1

A simpler way of doing the same thing as the previous example.

dfocus 2.3 dworker 1

Adds the groups in the indicated focus to a workers group.

dset CGROUP(2) $CGROUP(1)
dgroups -add -g $CGROUP(1) 2
dfocus 1 dgroups -add 2

These three commands insert process 2 into the same control group as process 1.

dgroups -add -g $WGROUP(2) 2.3

Adds process 2, thread 3 to the workers group associated with process 2.

dfocus tW2.3 dgroups -add

A simpler way of doing the same thing as the previous example.

Here are some additional examples:

dfocus g1 dgroups -add -new thread

Creates a new thread group that contains all the threads in all the processes in the control group associated with process 1.

set mygroup [dgroups -add -new thread $GROUP($SGROUP(2))]
dgroups -remove -g $mygroup 2.3
dfocus g$mygroup/2 dgo

Defines a new group containing all the threads in process 2's share group except for thread 2.3 and then continues that set of threads. The first command creates a new group containing all the threads from the share group, the second removes thread 2.3, and the third runs the remaining threads.

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0