In what circumstances is the system-call sequence fork() exec() most appropriate?
In what circumstances is the system-call sequence fork() exec() most appropriate? Please experts help.
In what circumstances is the system-call sequence fork() exec() most appropriate? Please experts help.
The system-call sequence fork() exec() more appropriate, where the parent and child processes interact before the child performs an exec.
Fork() system call is used to create a new process and exec() system call executes this process same as its parent process is running. vfork() is a special case of clone and is used to create new processes without copying the page tables of the parent process but it is not suitable for certain programs where the parent and child processes interact before the child performs an exec. For such programs, the system-call sequence fork() exec() more appropriate.