"Malcolm McLean" <re*******@btinternet.comwrites:
[...]
fork() is the UNIX function for generating another thread in the same
program. It is not a standard library function. system(), which is
standard, is the interface to the command shell and can be used to
create a separate program.
Thank you for demonstrating why off-topic questions should be
redirected rather than answered here.
<OT>fork() does not create another thread in the same program; it
creates a new process. The new process runs a new instance of the
parent program.</OT>
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"