chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Reschedule when a thread blocked on thread


From: Evan Hanson
Subject: Re: [Chicken-hackers] [PATCH] Reschedule when a thread blocked on thread-join! is forcibly resumed
Date: Thu, 2 Jun 2016 23:28:06 +1200

On 2016-06-02 11:32, Jörg F. Wittenberger wrote:
> No need to actually try.  You patch does exactly what my first
> workaround was when I discovered the issue.

Excellent, in that case we can re-hide `##sys#force-primordial` if this
is applied.

> However it looks to me as curing the symptom rather then cause.
> 
> Convince me otherwise: IMHO forcing the primordial to execute is the
> actual bug.  Once we don't do this anymore, we can go over all the code
> and remove the code dealing with the consequences.

Yes, it fixes a bug without making other changes to the scheduler. The
current behaviour is obviously incorrect and the patch addresses the
obvious incorrectness, that's all.

AFAICT from past discussions, whether forcing is good, bad, or just a
necessary evil is still unclear, and this needs some agreement before we
can simply rip out that code. I'm open to removing it in chicken-5, at
least, which is where something like a dedicated interrupt handling
thread could go should one materialize. If anyone has any thoughts about
this, please speak up.

Cheers,

Evan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]