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

how to use clone()

P: 2
I want to write a function using clone() to generate a simple process, which just need to print some information about the process, for example, pid of the parent process and pid of the child process..
Oct 2 '08 #1
Share this Question
Share on Google+
3 Replies

arne
Expert 100+
P: 315
If we're talking C here, have a look at the functions fork(), getpid() and getppid().

HTH,
Arne
Oct 5 '08 #2

P: 2
i could only use clone() to create a process, professor gave this homework... there are few information or examples about clone()..
Oct 5 '08 #3

arne
Expert 100+
P: 315
i could only use clone() to create a process, professor gave this homework... there are few information or examples about clone()..
Well, here is an article from the Linux Journal.

This and 'man clone' should help.

Cheers,
arne
Oct 6 '08 #4

Post your reply

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