System call for cloning

Write down the system call for cloning.

E

Expert

Verified

The standard form of clone function is written below:

int clone(int (*fn)(), void *child stack, int flag, intnargs,…);

The parameter fn is pointer from the child process to function to be executed.

The parameter child_stack is the pointer to zone of memory assigned for stack of child process.

The parameter Flags defines technique for cloning.

The parameter Nargs states the number of arguments to be passed to function pointed through fn and is followed through these arguments.

   Related Questions in Computer Engineering

©TutorsGlobe All rights reserved 2022-2023.