It's just a question of who dies first: the parent or the child.
问题只是哪个进程首先终止:父进程还是子进程。
This is just needed to tell ObjectGrid that in a complex graph of objects, the Employee object is the parent or root object.
这仅仅是为了告知objectgrid在复杂的对象图中,Employee对象是父对象或根对象。
With the return value of fork in mind, the code can now check to see if it is the parent or child process and act accordingly.
考虑到fork的返回值,现在该代码可以检查确定它是父进程还是子进程,并进行相应的操作。
应用推荐