Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: Periodic ta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 13 Topic 5810 of 5881
Post > Topic >>

Re: Periodic tasks - organization

by Simon Wright <simon.j.wright@[EMAIL PROTECTED] > Jul 20, 2008 at 10:46 AM

"Dmitry A. Kazakov" <mailbox@[EMAIL PROTECTED]
> writes:

> On Fri, 18 Jul 2008 08:31:29 -0700 (PDT), Anh Vo wrote:
>
>> On Jul 17, 12:31 pm, Simon Wright <simon.j.wri...@[EMAIL PROTECTED]
> wrote:
>
>>> But there are limits on what is permissible within a protected
>>> procedure, are there not?
>
> [...]
>
>> My design is completely different from yours. Indeed, an explicit
>> task is not needed. See Gem #15, Timers, for details.
>> http://www.adacore.com/2007/10/29/ada-gem-15/
>
> Hmm, but it is exactly the design presented by Simon. The problem with
> it is that the action fired upon a timer event is called from a
> protected procedure.
>
> This is IMO not what Maciej wanted, because as Simon has pointed out
> protected procedures are very limited in what they allowed do and in
> how they do it.

And further, they are called at interrupt priority (I haven't read up
enough to understand D-15 14/2, but see 25/2: 'executed directly by the
real-time clock interrupt mechanism'), so there are going to be
interesting issues related to shared variable access.

If you aren't running on an RTOS, why are you bothering with the added
complexity? and if you are, won't the standard Ada mechanisms (delay
until, etc) do the trick? (they do for us with VxWorks). I don't quite
buy the notion that RTOS => use timers (at least, not without sup****ting
them as a variation on the general notion of event, so that some events
can be scheduled to happen in the furure). Some thoughts on this here --
http://coldframe.sourceforge.net/coldframe/event-modelling.html
 




 13 Posts in Topic:
Periodic tasks - organization
Maciej Sobczak <see.my  2008-07-13 14:47:53 
Re: Periodic tasks - organization
tmoran@[EMAIL PROTECTED]   2008-07-13 18:35:55 
Re: Periodic tasks - organization
george.priv@[EMAIL PROTEC  2008-07-13 20:52:44 
Re: Periodic tasks - organization
"Alex R. Mosteo"  2008-07-14 11:08:33 
Re: Periodic tasks - organization
Anh Vo <anhvofrcaus@[E  2008-07-14 08:31:07 
Re: Periodic tasks - organization
Simon Wright <simon.j.  2008-07-16 22:38:51 
Re: Periodic tasks - organization
Anh Vo <anhvofrcaus@[E  2008-07-16 15:47:56 
Re: Periodic tasks - organization
Simon Wright <simon.j.  2008-07-17 20:31:11 
Re: Periodic tasks - organization
Anh Vo <anhvofrcaus@[E  2008-07-18 08:31:29 
Re: Periodic tasks - organization
"Dmitry A. Kazakov&q  2008-07-18 18:22:52 
Re: Periodic tasks - organization
Simon Wright <simon.j.  2008-07-20 10:46:45 
Re: Periodic tasks - organization
Anh Vo <anhvofrcaus@[E  2008-07-18 18:37:23 
Re: Periodic tasks - organization
"Dmitry A. Kazakov&q  2008-07-19 12:22:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 15:38:22 CDT 2008.