Hi Clement:
On 26 Jan 2017, at 10:59, Clément Bera <bera.clement@gmail.com> wrote:
Let's rewrite the method this way:
attemptToAssign: value withIndex: index | process | "INSERT CODE HERE" process := Processor activeProcess. [ process suspendedContext: process suspendedContext sender ] fork. Processor yield. self error: âshould not be reached'.
The PRocessorScheduler>>#yield does not guarantee that this process becomes never runnable again. It just puts the processes at the end of the runnable list. The fallback code of yield even explicitly forks another processes thatâs signaling the old process again to make it runnable. Best regards Stefan -- Stefan Marr Johannes Kepler Universität Linz http://stefan-marr.de/research/