[BUG] CRASHER: #resume a terminated process kills VM

Ned Konz ned at bike-nomad.com
Thu May 10 20:06:22 UTC 2001


On Thursday 10 May 2001 12:56, I wrote:
> On Thursday 10 May 2001 12:39, John B. Thiel wrote:
> > BTW,  Are processes the right way to accomplish "threads" in Squeak, or
> > is there some other mechanism?
>
> Yes. <plug level=shameless>Look at the ProcessBrowser in 3.1 for even more
> enjoyment of processes</plug>

Although you generally don't want to do Morphic things from other threads 
(like, for instance, write to the Transcript (unless someone put a mutex in 
there)). There is a mechanism in WorldState to handle "deferred" UI 
updates; you can pass a BlockContext or MessageSend (actually, anything 
that'll respond to #value) to be put on a queue. The passed object will be 
evaluated in the Morphic process, so things won't get screwed up.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com





More information about the Squeak-dev mailing list