摘要 |
An embodiment of the invention discloses a process replacement method and device for realizing quick replacement of a faulty process without occupying excessive system memory resources and task scheduling resources. An embodiment of the present invention method comprises: a parent process creates a shadow child process for a child process; after the shadow child process is created, the shadow child process processes a preset part of a procedure and then sleeps and waits to be awakened. When the parent process detects that the child process has a fault, the parent process recalls the child process, and wakes the shadow child process; after waking, the shadow child process replaces initialized procedures apart from the preset part of the procedure, and the shadow child process is upgraded to the child process. |