By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,335 Members | 1,902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,335 IT Pros & Developers. It's quick & easy.

Could you plz help me on this one, thanx!

P: 1
Given this problem:

Write a program, process-fan, that creates fanouts of processes. The fanout is a tree of depth d: the root of
the tree has d children; a child at level i has d − i child nodes and the root node is at level 0.
The program uses the -d option to specify the depth of the tree on the command line. Each process in the tree
prints its own process id, that of its parent, and those of its children. Furthermore, each process should wait for
all of its children to finish and then print a notification message about it.
Nov 17 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.