Out of the haze, and into focus:
Ada83 DOES NOT REQUIRE rescheduling. Ada95 core doesn't either.
Ada95 Annex D (just like Tuck sez) DOES.
At 09:38 AM 11/5/97 -0600, Samuel Mize wrote:
>I believe it was not required in Ada 83 that a "delay 0.0" provide a
>task rescheduling opportunity. My guess is that they didn't realize
>it would be an issue.
Excellent guess. And "they" would be "he".
>> A "delay 0.0" should be a potential break, what else?
>> Give me one reason not to do so.
This programmer would prefer that zero and negative values be optimized out
so that this critical task can hog the processor until it catches up. I'm
not condoning this coding behavior, just pointing to it as a valid example.
>(A REALLY savvy compiler writer might reschedule on an explicit "delay
>0.0", but not on a computed "delay [expression]" where [expression]
>evaluates to 0.0. I don't know if anyone did this. If so, it was
>implementation-dependent, and you couldn't count on it.)
Hence the idiom:
Keith Shillington - [log in to unmask]
Manager, Ada Customer Support