Previous: Deallocating Processor Objects Up: Processor Objects Next: The ::this Pointer

CC++ Computations

A CC++ computation is initiated by specifying an initial processor object. Only in this processor object is the function main executed. This processor object may create other processor objects, which may create still other processor objects.

A computation is terminated when main terminates on the initial processor object, or when exit() or abort() is called from any processor object. Terminating a computation results in the termination of all threads of control on all processor objects and the deallocation of all processor objects.

The initial processor object is specified by executing a program of the type of the initial processor object. When we compile a CC++ program without specifying a type for the executable, an anonymous type is created. Thus, all the programs we wrote in Chapters - defined anonymous processor object types. When we executed them, we created a single processor object.

paolo@cs.caltech.edu