Rexx - Extended Functions fork


Advertisements

This function is used to spawn a new child process on the system.

Syntax

fork() 

Parameters

None

Return Value

This function returns the process id of the new process.

Example

/* Main program */ 
options arexx_bifs 
say fork()

When we run the above program we will get the following result. The process number returned will differ from system to system.

An example of the result is shown below.

Output

1
rexx_extended_functions.htm
Advertisements