fork compare to exec in linux c program

pid_t  pid=fork()

 

it has 3 situation for the return result pid

0  child

>0 parent process

<0 fork fail

 

fork create a new process  and it parent live alse when the child process had been created

 

 

 

阅读更多
文章标签: linux c
个人分类: linux技术
上一篇fork compare to exec in linux c program
下一篇c 语言陷阱
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭