|
|
发表于 2005-5-1 10:38:36
|
显示全部楼层
Post by nait
- The differences between the parent and child are
- * the return value from fork
- * the process IDs are different
- * the two processes have different parent process IDs--the parent process ID of the child is the parent, the parent process ID of the parent does't change
- * the child's values for tms_utime, tms_stime, tms_cutime, and tms_ustime are set to 0
- * file locks set by the parent are not in inherited by the child
- * pending alarms are cleared for the child
- * the set of pending signals for the child is set to the empty set
复制代码
也就是说除了task_struct和fork的返回值,其它的都一样。task_struct是在内核空间里的。用户空间里的信息除了fork的返回值之外都是一样的,呵呵,又是表述上的问题。 |
|