• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

need help with this prgram...using fork, execv...

EngenZerO

Diamond Member
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
 
Back
Top