PPT Slide
Process Management SysCalls
- A child process can inspect the passed parameters from the parent process readily enough:
#include <iostream.h>
void main(int numArgs, char *argStrings[]) {
int I;
for (I = 0; I < numArgs; ++I);
cout << argStrings[I] << “ “;
}
cout << “\n”;
}