Prism 6.0 Reference Manual

cycle

In MP Prism, makes the next member of the cycle pset the current set.

SYNTAX

cycle

DESCRIPTION

The cycle command is available only in MP Prism.

Use the cycle command in MP Prism to cycle through the members of the cycle pset. The cycle pset is by default equivalent to the current set; you can set it to some other set via the define pset command. Issuing the cycle command advances the current process in the cycle pset to be the next member in the set and makes the current pset consist of only this process. This provides a convenient way of looking at each individual process within a pset.

EXAMPLE

This example defines a pset, makes it current, then cycles through its members, making each one the current set in turn:

(prism all) define pset foo 0:3
(prism all) pset foo
(prism foo) cycle
(prism 1) cycle
(prism 2) cycle
(prism 3) cycle
(prism 0)