开发者

How is system() function of stdlib.h file implemented in linux? [duplicate]

This question already has answers here: 开发者_运维知识库 Closed 11 years ago.

Possible Duplicate:

How does system() exactly work in linux?

For the sake of my curiosity, I want to know that how does system() function spawn the process and its internal implemenation ? Is is using fork , exec internally ?


On my Debian box it uses clone() that itself calls sys_clone(). You can use strace to look at system calls.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜