On 04/12/2010 08:16 PM, Lennart Sorensen wrote: > > Copy on fork is expensive, and if you are going to do fork+exec then > why bother copying at all? vfork+exec works fine for that. > > fork is supposed to be a cheap operation. >
Hmm, AFAIK, vfork initially (with pre-Linux UNIXes) was created as a version of fork that does not copy and thus is less expensive. But AFAIK, in Linux fork always does lazy copy and so copying is avoided in the "fork...exec" case. In Linux fork is not provided with (no-MMU) systems that can't do lazy copy. -Michael _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev