Hi Clement:

> On 26 Jan 2017, at 10:59, Clément Bera <bera.clem...@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/




Reply via email to