comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon.j.wright@mac.com>
Subject: Re: Tasking issues
Date: Sun, 12 Aug 2007 21:20:48 +0100
Date: 2007-08-12T21:20:48+01:00	[thread overview]
Message-ID: <m2r6m84i8v.fsf@mac.com> (raw)
In-Reply-To: 13bulskfjvogv8e@corp.supernews.com

Dennis Lee Bieber <wlfraed@ix.netcom.com> writes:

> On Sun, 12 Aug 2007 12:06:52 +0100, Simon Wright
> <simon.j.wright@mac.com> declaimed the following in comp.lang.ada:
>
>> 
>> If you are using an OS with preemptive tasking (eg VxWorks) ready
>> tasks are only switched when preempted by something of higher
>> priority. A task can voluntarily move itself to the back of the
>> ready queue for its priority by "delay 0.0;" (posssibly not
>> RM-mandated behaviour).
>>
> 	On most of the OSs I've run under, "something of higher
> priority" included the system clock controlling processing time
> slices... and any processes in a priority level tended to
> round-robin that level...

I was only talking about Ada tasks .. the OS will have all sorts of
other stuff, as you suggest, but (from the pov of Ada tasks) these
'only' cooperate to provide the environment in which the Ada tasks
execute.

In VxWorks (where Ada tasks are mapped to VxWorks tasks), there is no
involuntary round-robin behaviour. I dare say the Ada RTS could be
written to provide round-robin behaviour, but only for Ada tasks (and
I for one would find such a scheme perverted; do you really not want
to be able to predict how your RT program will behave?).



  parent reply	other threads:[~2007-08-12 20:20 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-11 17:03 Tasking issues shaunpatterson
2007-08-11 18:42 ` Dmitry A. Kazakov
2007-08-12 11:06   ` Simon Wright
2007-08-12 12:05     ` Dmitry A. Kazakov
2007-08-12 17:12       ` shaunpatterson
2007-08-12 18:03         ` Dmitry A. Kazakov
2007-08-12 22:10         ` Jeffrey R. Carter
2007-08-13 19:54         ` Simon Wright
2007-08-13 22:30           ` shaunpatterson
2007-08-14  7:10             ` Tasking issues => Book List anon
     [not found]     ` <13bulskfjvogv8e@corp.supernews.com>
2007-08-12 20:20       ` Simon Wright [this message]
2007-08-11 18:51 ` Tasking issues jimmaureenrogers
2007-08-11 19:08 ` Jeffrey R. Carter
2007-08-11 22:31 ` Steve
2007-08-12  9:00 ` anon
2007-08-12  9:43   ` Dmitry A. Kazakov
2007-08-12 21:39     ` anon
2007-08-12 22:15       ` Jeffrey R. Carter
2007-08-13  9:13         ` anon
2007-08-13 19:37           ` Simon Wright
2007-08-13 20:17             ` Markus E.L. 2
2007-08-14  0:40           ` Jeffrey R. Carter
2007-08-13  9:22       ` Dmitry A. Kazakov
2007-08-13 12:41         ` Larry Kilgallen
2007-08-13 13:22           ` Dmitry A. Kazakov
2007-08-12 21:03   ` Maciej Sobczak
2007-08-12 22:07   ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox