--=_courier-14756-1053597215-0001-2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
At 10:56 AM 5/21/2003 -0700, David Mosberger wrote:
> >>>>> On Wed, 21 May 2003 11:26:31 +0200, Mike Galbraith <efault@gmx.de>
> said:
>
> Mike> The page mentions persistent starvation. My own explorations
> Mike> of this issue indicate that the primary source is always
> Mike> selecting the highest priority queue.
>
>My working assumption is that the problem is a bug with the dynamic
>prioritization. The task receiving the signals calls sleep() after
>handling a signal and hence it's dynamic priority should end up higher
>than the priority of the task sending signals (since the sender never
>relinquishes the CPU voluntarily).
>
>However, I haven't actually had time to look at the relevant code, so
>I may be missing something. If you understand the issue better,
>please explain to me why this isn't a dynamic priority issue.
You're right, it looks like a corner case. It works fine here with the
attached diff.
-Mike
--=_courier-14756-1053597215-0001-2
Content-Type: application/octet-stream; name="xx.diff"; x-mac-type=42494E41; x-mac-creator=5843454C
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="xx.diff"
LS0tIGxpbnV4LTIuNS42OS52aXJnaW4va2VybmVsL3NjaGVkLmMub3JnCVdlZCBNYXkgMjEgMDc6
NDU6MDAgMjAwMworKysgbGludXgtMi41LjY5LnZpcmdpbi9rZXJuZWwvc2NoZWQuYwlUaHUgTWF5
IDIyIDExOjA2OjEyIDIwMDMKQEAgLTEyNjQsNyArMTI2NCw3IEBACiAJdGFza190ICpwcmV2LCAq
bmV4dDsKIAlydW5xdWV1ZV90ICpycTsKIAlwcmlvX2FycmF5X3QgKmFycmF5OwotCXN0cnVjdCBs
aXN0X2hlYWQgKnF1ZXVlOworCXN0cnVjdCBsaXN0X2hlYWQgKmhlYWQsICpjdXJyOwogCWludCBp
ZHg7CiAKIAkvKgpAQCAtMTI4Niw3ICsxMjg2LDYgQEAKIAlycSA9IHRoaXNfcnEoKTsKIAogCXJl
bGVhc2Vfa2VybmVsX2xvY2socHJldik7Ci0JcHJldi0+bGFzdF9ydW4gPSBqaWZmaWVzOwogCXNw
aW5f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