Hey guys,
I need some help, I have to write this is C++ it deals with Unix OS calls.
Here is the directions...
1. Program AA will create two processes B and A1. Process B will get code from compiled program BB. A process with unchanged code will be called and A1. AA will wait for one of its childs to terminate.
2. Process B creates a text file with your name.
3. Process A1 will enter an infinite loop.
4. AA will continue and accept a input string from keyboard...
...
I am stuck on parts 1, 2, 3. I have program B written and it works well with Program AA and Process B. But I dont know how to work in the infinite loop. Any help would be appreciated, thanks
I need some help, I have to write this is C++ it deals with Unix OS calls.
Here is the directions...
1. Program AA will create two processes B and A1. Process B will get code from compiled program BB. A process with unchanged code will be called and A1. AA will wait for one of its childs to terminate.
2. Process B creates a text file with your name.
3. Process A1 will enter an infinite loop.
4. AA will continue and accept a input string from keyboard...
...
I am stuck on parts 1, 2, 3. I have program B written and it works well with Program AA and Process B. But I dont know how to work in the infinite loop. Any help would be appreciated, thanks