Re: Process & Fork

Tommy Pettersson <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <20190720203509.GA21677@kelsos>
Hi Quenio,

I can't speak for GNU Smalltalk, but yield in general is a tricky business,
and does often not mean what one might think. A good way of thinking of
yield is: "Hi scheduler, I'm not done yet, but if you have something
important to do, I will yield now". In particular, yield MAY be a no-op, so
never put it in a busy-wait loop.

Anyways, puting a delay in the main process makes the two processes take
turns on the cpu. This may be a bug, a feature, or per design, I have
really no idea. Just don't ever put yield in a busy-wait loop, and
everyone will be fine. :-)

/Tommy

_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.