From: Jerome Hugues <hugues@merlin-lenchanteur.enst.fr>
Subject: Re: Intended use of package Ada.Task_Attributes
Date: Thu, 5 May 2005 15:33:09 +0000 (UTC)
Date: 2005-05-05T15:33:09+00:00 [thread overview]
Message-ID: <slrnd7kf55.5rk.hugues@merlin.enst.fr> (raw)
In-Reply-To: Lr2dnaaI2Pilj-ffRVn-2Q@comcast.com
In article <Lr2dnaaI2Pilj-ffRVn-2Q@comcast.com>, Steve wrote:
> "Jerome Hugues" <hugues@merlin-lenchanteur.enst.fr> wrote in message
> news:slrnd7k1ct.4m8.hugues@merlin.enst.fr...
>> In article <9g3jomw1nprv$.1oustugm8nxot$.dlg@40tude.net>, Dmitry A.
>> Kazakov wrote:
>>>> implementing implementation-defined task attributes / properties?
>>>>
>>>> What constitutes a "good use" of this package?
>>>
>>> Basically the task ID is anything you need. You can then create a hash
>>> table to keep pointers to the task specific data global in your system.
>>> This will require dynamic handling of the table and also checking if the
>>> table contains task data and creating them if necessary. Task_Attributes
>>> provides an alternative which might appear more usable in an embedded or
>>> real-time system: statically allocated data, faster data access (no hash
>>> table search needed) etc.
>>
>> Except that it is explicitely forbidden by the Ravenscar profile :(
>>
>> see http://www.adaic.com/standards/rm-amend/html/RM-D-13-1.html
>>
>
> Did I miss something?
>
> Who said anything about the requirement of following the Ravenscar profile?
>
> I thought the Ravenscar profiler was a tool that restricted certain
> operations that are difficult to prove are safe for safety critical
> applications. Which is a small subset of Ada applications.
Sorry, I went a bit fast when reacting to Dmitry argument.
Given that the Ravenscar profile is a subset of Ada, dedicated to
real-time applications, I think it is interesting to think about why
it was discarded.
If you read the implementation notes of GNAT (for GNU/Linux, see
a-tasatt.adb), you'll understand why it is not something one should
allow for any real-time system, unless your tool vendor provide strong
guarantee for your target.
So, I'm not sure it is someone one would consider for any real-time
system, be it Ravenscar-compliant or not.
--
Jerome
next prev parent reply other threads:[~2005-05-05 15:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-05 10:50 Intended use of package Ada.Task_Attributes Mark Lorenzen
2005-05-05 11:24 ` Dmitry A. Kazakov
2005-05-05 11:38 ` Jerome Hugues
2005-05-05 12:34 ` Steve
2005-05-05 15:33 ` Jerome Hugues [this message]
2005-05-05 21:09 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox