comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Ravenscar - Multiple Protected Entries
Date: Sun, 10 Aug 2003 19:17:36 GMT
Date: 2003-08-10T19:17:36+00:00	[thread overview]
Message-ID: <3F369A4E.1050406@spam.com> (raw)
In-Reply-To: bh604g$ge4$1@news.cs.tu-berlin.de

Stephan Heinemann wrote:
>>Suppose 2 tasks have the same priority, are blocked on 2 entries of a 
>>protected object, and both barriers become True at the same time. How do 
>>you determine which of the 2 tasks executes next?
> 
> 
> The one which suspended first - FIFO_Within_Priorities. But which one
> suspended first? ...

FIFO_Within_Priorities has nothing to do with it. There are 2 queues, 
and each has only 1 task in it, so each task is at the head of its 
queue. Each task is next to execute when its respective barrier becomes 
True. And the language rules do not specify which task executes first. 
So it is non-deterministic which task will execute next.

-- 
Jeff Carter
"All citizens will be required to change their underwear
every half hour. Underwear will be worn on the outside,
so we can check."
Bananas




  reply	other threads:[~2003-08-10 19:17 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-03 16:30 Ravenscar Stephan Heinemann
2003-08-04  8:19 ` Ravenscar Lutz Donnerhacke
2003-08-04 12:52 ` Ravenscar Matthew Heaney
2003-08-04 14:24   ` Ravenscar Phil Thornley
2003-08-04 20:49   ` Ravenscar Stephan Heinemann
2003-08-07 16:37     ` Ravenscar - Scheduling Stephan Heinemann
2003-08-07 17:16       ` Stephan Heinemann
2003-08-10 17:46     ` Ravenscar Stephan Heinemann
2003-08-06  9:43 ` Ravenscar Rodrigo Garcia
2003-08-09 15:44 ` Ravenscar - timouts Stephan Heinemann
2003-08-09 18:29 ` Ravenscar - Multiple Protected Entries Stephan Heinemann
2003-08-10  2:36   ` Jeffrey Carter
2003-08-10 17:41     ` Stephan Heinemann
2003-08-10 19:17       ` Jeffrey Carter [this message]
2003-08-11 16:35         ` Stephan Heinemann
2003-08-11 17:05         ` Stephan Heinemann
2003-08-11 19:18           ` Jeffrey Carter
2003-08-12 17:07             ` Stephan Heinemann
2003-08-12 16:31     ` Colin Paul Gloster
2003-08-12 17:10       ` Stephan Heinemann
2003-08-12 19:10         ` Colin Paul Gloster
2003-08-13 19:17           ` Colin Paul Gloster
replies disabled

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