system, fork, execlp

Crypter

Power Member
Viva,

sorry pela pergunta, mas precisava de saber as diferenças entre a execução da função system, execlp e fork! preciso disso para colocar num relatorio, mas ando farto de procurar e nao encontro! se houver alguma alma caridosa que saiba, agradecia que me ajuda-se!

Cumps
 
precisava de saber as diferenças entre a execução da função system, execlp e fork!
Código:
$ man system
(...)
       system()  executes a command specified in command by calling /bin/sh -c command, and returns after the command has been completed.  Dur-
       ing execution of the command, SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored.
(...)
Código:
$ man execlp
(...)
       The exec() family of functions replaces the current process image with a new process image.  The functions described in this manual page
       are front-ends for the function execve(2).  (See the manual page for execve(2) for detailed information about  the  replacement  of  the
       current process.)
(...)
Código:
$ man fork
(...)
       fork()  creates  a  new process by duplicating the calling process.  The new process, referred to as the child, is an exact duplicate of
       the calling process, referred to as the parent, except for the following points:
(...)
 
Back
Topo