Hi Jason,
Im not really sure what you are trying to do but this works too.
semA := Semaphore forMutualExclusion.
semB := Semaphore new.
[semA critical: [Transcript show: 'b1'; cr. semB signal. semA wait.].
Transcript show: 'b2'; cr.
semB signal.
] fork.
[semB critical: [Tra
Hi Folks,
I think the problem is that we have race conditions due to the fact
that Transcript is not thread-safe (as pointed out by Matthew). We
can fix this either by making it thread-safe (using a mutex semaphore
as suggested by Ron), or by simply enclosing our accesses to
Transcript