First page Back Continue Last page Overview Graphics

Starting independent programms

Until now the child processes in the previous examples have only called a function and then ended.

Forks are often used to start independent running programs

For this purpose there is the exec*() function in the os module.

They run the new program by replacing the old one.

They don't return to the invoking program.

Under Unix/Linux they even get the same process ID that the invoking program has.