Is it possible to interrupt the process and checkpoint in order to resume it later?

Suppose you have an application that consumes all the computing power. Now you want to do one more necessary job. Is there any way in Linux to interrupt this application and its state checkpoint so that it can later be resumed from the state that was interrupted?

I am particularly interested in the way in which the application can be stopped and restarted on another machine. Is this also possible?

+3
source share
5 answers

, ( , , TCP/IP...).

, BLCR .. ( : , ..).

. .

. . Emacs ( Xemacs) unexec.c ( ).

. SBCL ( Common Lisp) . SML/NJ . Squeak ( Smalltalk) .

GCC *.h ( , GCC), .

. . serialization ( à la JSON, YAML, XML,...). hibernation ( ).

+5

man- man kill

:

kill -STOP <pid>  

kill -CONT <pid>

<pid> - .

+3

: Control + Z ( SIGTSTP)

bg/fg,

+2

POPIX . , ; . , , - , , . , - /. , , , .

, , ( ) 128- , ...

+1

On linux, you can send this STOP process signal. Leter you resume it by sending a CONT signal. Please refer to the destruction guide.

0
source

All Articles