[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Process & Fork
From: |
Tommy Pettersson |
Subject: |
Re: [Help-smalltalk] Process & Fork |
Date: |
Sat, 20 Jul 2019 22:35:09 +0200 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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] Process & Fork, Quenio dos Santos, 2019/07/20
- Re: [Help-smalltalk] Process & Fork, Holger Freyther, 2019/07/20
- Re: [Help-smalltalk] Process & Fork, Quenio dos Santos, 2019/07/20
- Re: [Help-smalltalk] Process & Fork, Holger Freyther, 2019/07/22
- Re: [Help-smalltalk] Process & Fork, Quenio dos Santos, 2019/07/22
- Re: [Help-smalltalk] Process & Fork, Holger Freyther, 2019/07/23
- Re: [Help-smalltalk] Process & Fork, Quenio dos Santos, 2019/07/26
- Re: [Help-smalltalk] Process & Fork, Holger Freyther, 2019/07/26
- Re: [Help-smalltalk] Process & Fork, Quenio dos Santos, 2019/07/26
Re: [Help-smalltalk] Process & Fork,
Tommy Pettersson <=