[squeak-dev] Running process after image save/stop/restart

Bert Freudenberg bert at freudenbergs.de
Thu Feb 28 22:30:08 UTC 2013


On 2013-02-28, at 22:38, Louis LaBrunda <Lou at Keystone-Software.com> wrote:

> If a process is running when an image is saved, is the process stopped at
> any point in particular?

The active process is stopped in the snapshot primitive (a.k.a. "image saving") and resumes after it on startup. All other processes are waiting on some semaphore anyway.

> If the saved image is started, is there any way the process can tell?

Not the process itself. But you surely keep the process in a class somewhere, and the class can arrange to get notified on startup by adding itself to the startup list. See addToStartUpList:.

> I'm running a process that keeps running for a look time.  It loops with a
> delay and in the loop gets the date and time.  If the date and time were
> obtained just before the save, they would be old at the time of the image
> restart and need to be refreshed.


Delays get adjusted after resuming from snapshot. So it should just work.

- Bert -



More information about the Squeak-dev mailing list