Dear all,
The difference between fork and vfork used to be whether copying parent process's pages to child or not. But nowadays an OS might use copy-on-write technique for the fork call, thus fork won't do any copy if not needed. So that running another program using fork()+exec() will have the same efficiency with vfork()+exec().
My question is, does the fork implementation of FreeBSD behave like this (the C-O-W one) too?
The difference between fork and vfork used to be whether copying parent process's pages to child or not. But nowadays an OS might use copy-on-write technique for the fork call, thus fork won't do any copy if not needed. So that running another program using fork()+exec() will have the same efficiency with vfork()+exec().
My question is, does the fork implementation of FreeBSD behave like this (the C-O-W one) too?