Strange Process Question

Rich Warren rwmlist at gmail.com
Thu Aug 17 11:35:29 UTC 2006


On Aug 17, 2006, at 1:02 AM, David T. Lewis wrote:

> On Wed, Aug 16, 2006 at 03:57:02PM -1000, Rich Warren wrote:
>> OK, I can fork off a new session, then suspend the session. Can I now
>> save the suspended session to disk and open it in another image (or
>> in another application in the same image)?
>
> What do you mean by "fork off a new session"? If you are referring to
> #forkSqueak, then see the code in SmalltalkImage>>saveAs. You can do
> something similar to this in the child Squeak to save it to an image
> and changes file that you can open later on.
>
> Dave
>
>

Ah, sorry. Fingers confused, typing error.

That should have read "fork off a new process".


e.g.

myProc := [this is my block that takes, oh lets say 3 hours to  
complete] fork.

Can I suspend myProc and save it to disk (seperately from quitting  
and saving the whole image)? Can I load it into different objects and  
resume it? Can I sneaker net it to a different machine and load it in  
a completely different copy of Squeak? Or will bad things happen?

As a quick experiment, I tried to "save and quit" squeak while I had  
a suspended process. Squeak locked up completely. I only tried it  
once, however. So that may have just been a bit of random misfortune.  
But it's the only time squeak has ever locked up on me.

I'm not sure where I'd ever use this. The SmalltalkImage stuff you  
mention is probably more generally useful. But I'm still curious.

-Rich-




More information about the Squeak-dev mailing list