As described in " Attaching to a Process", you can load a running process into Prism by specifying the name of the executable program and the process ID of the corresponding running process on the Prism command line.
You can also attach to a running process from within Prism.
To attach to the running process of a serial program, the process must be running on the same node as Prism.
To attach to a running process from within Prism:
Find out the process's ID by issuing the Solaris command ps.
Load the executable program for the process into Prism.
Issue the attach command on the Prism command line, using the process's process ID as the argument.
With either method of attaching to the process, the process is interrupted; a message is displayed in the command window giving its current location, and its status is stopped. You can then work with the program in Prism as you normally would. The only difference in behavior is that it does not do its I/O in a special Xterm window; see " Program I/O".
To detach from a running process, issue the command detach from the Prism command line. The process continues to run in the background from the point at which it was stopped in Prism; it is no longer under the control of Prism. Note that you can detach any process in Prism via the detach command, not just processes that you have explicitly attached.
Use the kill command to terminate the process or job (rather than releasing it to run in the background) currently running within Prism.