forking() and CreateProcess()
问题 Are forking() and CreateProcess(with all required arguments), the same thing for Linux and WinXP, respectively? If they are different, then could someone explain the difference in terms of what happens in each of the two cases? Thanks 回答1: They do different things, and on different systems. CreateProcess is a Windows-only function, while fork is only on POSIX (e.g. Linux and Mac OSX) systems. The fork system call creates a new process and continue execution in both the parent and the child