Re: Ravenscar - program termination
- From: Robert A Duff <bobduff@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 15:30:58 -0500
Niklas Holsti <niklas.holsti@xxxxxxxxxxxxx> writes:
matteo.bordin@xxxxxxxxx wrote:
[ snip ]
On real-time kernels supporting the Ravenscar profile, even the main
procedure must contain an infinite loop.
I don't think that is an Ada requirement. As I understand it, under the
Ravenscar profile the environment task is the master of all application
tasks, so it will await their termination; since they never terminate,
neither does the environment task (RM 2005 10.2(25)), even if the main
procedure terminates and returns to the body of the environment task.
Then what would happen if there were no tasks other than the environment
task?
I have seen a Ravenscar Ada implementation that requires the main
procedure to end with an infinite loop, but I think that is a
non-standard requirement.
Why so? The RM wording says "all tasks", and that includes the env
task.
- Bob
.
- Follow-Ups:
- Re: Ravenscar - program termination
- From: Niklas Holsti
- Re: Ravenscar - program termination
- References:
- Ravenscar - program termination
- From: Maciej Sobczak
- Re: Ravenscar - program termination
- From: Ludovic Brenta
- Re: Ravenscar - program termination
- From: Maciej Sobczak
- Re: Ravenscar - program termination
- From: matteo . bordin
- Re: Ravenscar - program termination
- From: Niklas Holsti
- Ravenscar - program termination
- Prev by Date: Re: Easy question about Character manipulation
- Next by Date: Re: Problems with gcov
- Previous by thread: Re: Ravenscar - program termination
- Next by thread: Re: Ravenscar - program termination
- Index(es):
Relevant Pages
|