07-05-2004
6,
0
Join Date: Jun 2004
Last Activity: 7 June 2006, 9:54 AM EDT
Location: Italia - Napoli
Posts: 6
Thanks Given: 0
Thanked 0 Times in 0 Posts
alternately writings
Hi,
can anyone show me how to solve the following exercise in ANSI C?
Create 2 process (parent & child).
The parent have to create a file called file<pid>, where <pid> is the process ID of the child process.
For n times (where n is a constant previously defined) the child process and the parent process alternately write in file<pid> a sentence (like "I'm the child" or "I'm the parent") and their process ID.
After n writings the parent process write in file<pid> the termination status of child process.
I hope you understand.. It's so important, please help me!
Thank's!