Specifying the CPU and process name

You can specify which CPU an application process runs in and its process name by using options of the run utility. The run utility starts OSS programs with specific attributes.

Use the following command to specify the CPU where a Java application is to run:

run -cpu=cpu_number java class_name

For example, the command to run Java in CPU 3 is:

$run -cpu=3 java HelloWorld

Use the following command to provide a java process a process name:

run -name=/G/process_name java class_name

For example, the command to provide Java the process name $APPJ is:

$run -name=/G/appj java HelloWorld

where,

the /G directory identifies the Guardian fileset.

For information about the /G directory, see Open System Services User's Guide.

The following example combines more than one run option in a single command:

$run -name=/G/japp -cpu=3 java HelloWorld

For more information on using -name option, see Java process name.

For more information about the run(1) utility, see Open System Services Shell and Utilities Reference Manual.