[Newbies] Semaphore problems
kutsuya at gmail.com
Sat Sep 29 23:54:19 UTC 2007
squeak -version gives me:
Squeak3.9alpha of 4 July 2005
i686 AMD Turion(tm) 64 Mobile Technology ML-30 GNU/Linux
On 9/30/07, Matthew Fulmer <tapplek at gmail.com> wrote:
> On Sun, Sep 30, 2007 at 06:44:29AM +0700, Jason Shoemaker wrote:
> > Hello,
> > I'm trying to get this code run, but I'm not getting the results I
> > expect. I running on a 3.10beta image.
> > semA := Semaphore new.
> > semB := Semaphore new.
> > [Transcript show: 'b1'; cr. semB signal. semA wait.
> > Transcript show: 'b2'; cr.] fork.
> > [Transcript show: 'a1'; cr. semA signal. semB wait.
> > Transcript show: 'a2'; cr.] fork.
> > results:
> > b1
> > a2
> > That's all. If I hit cmd-doIt rapidly I do begin to see a1 and b2 as
> > well. The process browser doesn't seem to show anything waiting.
> > I'm on a amd64, in a 32bit chroot. I'm in Gentoo Linux, so the VM was
> > built from source.
> What VM did you build from source?
> Matthew Fulmer -- http://mtfulmer.wordpress.com/
> Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners