rr, threads, and signal handlers

Robert O'Callahan robert at ocallahan.org
Tue Nov 3 04:04:31 UTC 2015


On Tue, Nov 3, 2015 at 5:02 PM, Robert O'Callahan <robert at ocallahan.org>
wrote:

> rr should allow a context switch in that case. I'm not sure why you're
> deadlocking.
>
> Inserting a sched_yield while busy-waiting should make the problem go
> away. Does it?
>
> Does the problem show up if you write a small standalone testcase with the
> behavior you described?
>

And, I assume you're not messing with thread priorities? If thread 2 had
higher priority than thread 1 (e.g. via sched_setparam) I would expect that
behavior.

Rob
-- 
lbir ye,ea yer.tnietoehr  rdn rdsme,anea lurpr  edna e hnysnenh hhe uresyf
toD
selthor  stor  edna  siewaoeodm  or v sstvr  esBa  kbvted,t
rdsme,aoreseoouoto
o l euetiuruewFa  kbn e hnystoivateweh uresyf tulsa rehr  rdm  or rnea
lurpr
.a war hsrer holsa rodvted,t  nenh hneireseoouot.tniesiewaoeivatewt sstvr
esn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rr-dev/attachments/20151103/6222b920/attachment.html>


More information about the rr-dev mailing list