Re: What is the practical significance of fork

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux