this is a question my teacher is asking and no one know what to reply.

Someone can tell me which are the low level step unix makes to make a fork(); (with system call) and returns?

thanks

link|improve this question

78% accept rate
Does your teacher know the answer? – mattdm Dec 14 '10 at 15:40
You can look at the Linux kernel source code. It is very simple :) – Khaled Dec 14 '10 at 15:49
1  
We're not really here to do your homework. – larsks Dec 14 '10 at 15:53
feedback

closed as off topic by SvenW, larsks, Iain, Zoredache, Chopper3 Dec 14 '10 at 16:26

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

1 Answer

A copy of the process's structures within the kernel is made, along with giving the new process a different PID. The new PID is returned to the caller.

link|improve this answer
You could elaborate more. The OP wanted a bit more than the successful result of calling fork(). – Tim Post Dec 14 '10 at 15:46
1  
@Tim: Which Unix would you like me to elaborate on "process's structures within the kernel" for? – Ignacio Vazquez-Abrams Dec 14 '10 at 16:07
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.