[EMAIL PROTECTED] wrote: > I have a program which will continue to run for several days. When it is > running, I can't do anything except waiting because it takes over most > of the CUP time. > > Is it possible that the program can save all running data to a file when > I want it to stop, and can reload the data and continue to run from > where it stops when the computer is free ?
For Linux (and other Unix like OSs), there are several "checkpointing" libraries available which allow programs to be saved to disk, and restarted later. If the other suggestions people have given to you (STOPping and CONTinuing processes), or sleep statements, or saving state, don't work investigate these. e.g. http://www.cs.wisc.edu/~zandy/ckpt/ These programs have limitations on what can be restored (e.g. threads, shared memory, network connections...). I don't know which ones work with python. -- Jeremy Sanders http://www.jeremysanders.net/ -- http://mail.python.org/mailman/listinfo/python-list