当默认应用程序域的父进程存在时发生。
Occurs when the default application domain's parent process exits.
代码实现通过共享内存段通信的父进程和子进程。
The code implements a parent and child process that communicates via a shared memory segment.
在此例中,父进程调用fork,等待两秒钟,然后退出。
In this example, the parent process calls fork, waits for two seconds, then exits.
当父进程在60秒以后终止时,两个进程都消失了。
When the parent dies 60 seconds later, both processes are gone.
这意味着可消除僵死进程的唯一方法是终止父进程。
This means that the only way you can get rid of zombie processes is by killing the parent.
可以看到,PPID在父进程终止后更改为1。
获得0的进程称为子进程,非零结果属于原始进程,即父进程。
The process that gets the 0 is called the child process, and the non-zero result goes to the original process, which is the parent process.
清单7与清单6相反——即在父进程之前终止的子进程。
Listing 7 shows the opposite of Listing 6 — that is, the child dying before the parent.
当shell脚本进程退出或返回到父进程时,退出码应该是0。
When a shell script process exits or returns to the parent process, the exit code should be 0.
写时拷贝技术允许父进程和子进程读同一个物理页面。
The Copy On Write technique allows both the parent and the child to read the same physical pages.
进程还有父进程,在大多数情况下就是启动它的进程的PID。
A process also has a parent, which in most cases is the PID of the process that launched it.
父进程使用这些流来写入子进程的输入和获取子进程的输出。
The parent process uses these streams to feed input to and get output from the subprocess.
如果父进程在子进程之前终止,孤立的子进程需要知道它们的父进程是谁。
If the parent process dies before its children, the orphaned children need to know who is their parent process.
但是,管道只能在父进程和子进程之间使用,不能在任意两个进程之间使用。
A pipe, though, can only be used between a parent and child process, not between two arbitrary processes.
尽管父进程可以访问其子进程的进程ID并向它传递参数,但是反过来不行。
Although a parent process can access the process ID of its child process and can thus pass arguments to it, the reverse is false.
由于子进程在后台运行,父进程一终止,控制即返回到Shell。
Because the child process is running in the background, control returns to the shell as soon as the parent dies.
POSIX信号量:为什么来之前,父进程获得信号量孩子释放吗?
POSIX semaphore: Why come the parent process acquire semaphore before child releases it?
子进程从终止时起就一直处于僵死状态,直到父进程确认该信号为止。
From the time the child dies until the time the parent acknowledges the signal, the child sits in a zombie state.
db 2Watchdog (db2wdog):所有其他进程的父进程。
Db2 Watchdog (db2wdog) : Parent process for all other processes.
默认情况下,exec继承父进程的组和用户ID,这就使得它会依赖于父进程。
By default, the exec function inherits the group and user IDs from the parent process, which makes it dependent on the parent process. This can be changed by.
bInheritHandles确定了子进程是否要继承父进程的句柄。
BInheritHandles determines whether the handles have to be inherited to the child from the parent.
Init是将要在您的Linux操作系统上运行的所有其它进程的父进程。
Init is the parent of all other processes that will run on your Linux OS.
fork会创建一个子进程,与父进程相比只是PID和PPID不同;实际上,资源利用设为0。
Fork creates a child process that differs from the parent process only in its PID and PPID; in fact, the resource utilizations are set to 0.
proctree输出包含指定进程ID (PID)或用户的进程树,子进程相对于父进程缩进显示。
Proctree prints the process trees containing the specified process IDs (PIDs) or users, with child processes indented from their respective parent processes.
当插件正常终止(命名管道中出现终止消息)时,或者在发现父进程已经终止时,这个守护进程就被终止。
The daemon process is terminated either during normal plug-in termination (message in a named pipe to terminate) or if it is signaled that the parent process has terminated.
注意:ps的第一个输出中的父进程id (PPID)为8619,这是脚本的进程id (PID)。
Notice that the parent process id (PPID) in the first output of ps is 8619, which is the process id (PID) of the script.
考虑到fork的返回值,现在该代码可以检查确定它是父进程还是子进程,并进行相应的操作。
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系统调用在子进程中返回0,但返回给父进程的却是进程z的进程ID。
To differentiate, the fork system call returns 0 in the progeny but returns the process ID of process Z to the progenitor.
第一列列出用于运行该进程的用户身份,第二列列出进程的ID,第三列列出该进程的父进程id。
The first lists the user the process is running as, the second lists the ID of the process, and the third lists the ID of the parent of the process.
请注意子进程如何通过getppid来知道其父进程以及父进程如何使用fork来定位其子进程。
Note how the child knows its parent through getppid and how the parent USES the result of fork to locate its child.
应用推荐