Computing.Net > Forums > Unix > Fork trouble

Fork trouble

Reply to Message Icon

Original Message
Name: hummer350
Date: July 17, 2008 at 17:51:19 Pacific
Subject: Fork trouble
OS: unix
CPU/Ram: 1
Model/Manufacturer: UNIX
Comment:

I was wondering if someone could help me here. if it's too much trouble then i'm sorry i asked lol...

I am new at creating forks...i know they can fork several times and a child process can use fork to spawn children of it's own. What i need to know is i need to create two subprocesses, from there each subprocess should create one subprocess of it's own. after each fork each parent should use printf to display the process ids of it's offspring.

i hope that makes sense, thanks alot for your help doing this i hope it isn't alot of code, and my prof has been no help !

my email - hummer350z@gmail.com


Report Offensive Message For Removal


Response Number 1
Name: nails
Date: July 17, 2008 at 20:15:09 Pacific
Reply: (edit)

Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Fork trouble

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge