HI Greg,

> So
>
> ==
> if (vfork())
>     execve(...)
> ==
>
> would be ultra-lightweight at the fork level because not even the page
> tables would be copied.  I didn't know that.  Seems extremely useful
> for huge programs that need to spin-off a little task.
>
> Always something new to learn.

That's my understanding, although the use of vfork seems to be discouraged.

Be sure to read the man page:
<http://linux.die.net/man/2/vfork>

I normally work in kernel space, so I haven't had much need to use
fork or vfork :)

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to