Re: Running a time consuming background process
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com - Jordan On Jan 27, 2008, at 10:56 AM, Tommy Nordgren wrote: _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/jkh%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Mmmm. Process snapshotting. I'm afraid that feature does not exist on Mac OS X, so you'll have to simulate this yourself with manual labor behind the scenes. Sweep all of your program's state into well- known data structures, save those data structures when you get the signal, add logic to the program which detects saved state files and allows itself to resume from them, you're done. It's all "just a simple matter of coding" as we like to say. :-) I need to run a custom program that I expect to need several weeks of (wall clock) time to complete. How can I set up and run so that I can save state on any signal, and having my program automatically resumed on start up, with as little extra work as possibly when resuming. My program is a pure batch job, by the way. ---------------------------------- Skinheads are so tired of immigration, that they are going to move to a country that don't accept immigrants! Tommy Nordgren tommy.nordgren@comhem.se This email sent to jkh@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Jordan K. Hubbard