Multi-thread Question in Morph?

Boris Gaertner Boris.Gaertner at
Sat Jan 31 22:18:27 UTC 2004

second proposal for a question from:  ducasse <ducasse at> > 
> does anybody has an idea of how I could solve that problem?

Hi Stef,

playing with this problem is just fun.

Please try also this ( with an open Transcript,
otherwise you will not see the trace messages):

1. NewBot new inspect.
2. In the evaluation pane of the inspector evaluate:
   [self diamNumber] fork inspect.

The future tells you that it is waiting and you get
a second inspector, for a process.

3. In the evaluation pane of the new inspector,

self suspendedContext receiver
 value: 9999

suspendedContext answers a MethodContext,
receiver answers the Future and that future is 
the receiver of the value: message.

For this experiment, you do not need an
accessor to get the future. This may be seen as
an advantage.

When you have an inspector on a BotCommand,
you can evaluate the setFutureValue a second
time and will get an error notification.

When you have an inspecxtor on a Process, you
will not be able to evaluate the 

self suspendedContext receiver
 value: 9999

a seond time because the first evaluation terminated
the process, a fact that is also shown in the inspector.

Greetings, Boris

More information about the Squeak-dev mailing list