From: "Alex R. Mosteo" <devnull@mailinator.com>
Subject: Re: Gnat and priority level
Date: Tue, 19 Oct 2004 11:58:02 +0200
Date: 2004-10-19T11:58:02+02:00 [thread overview]
Message-ID: <4174E52A.60405@mailinator.com> (raw)
In-Reply-To: <1098176457.332197.157030@z14g2000cwz.googlegroups.com>
mferracini wrote:
> Hi, i'm new on ada and i have many problem... :)
>
> i need an info:
> Ada.Text_Io.Put(Item => Integer'image(System.Priority'Last));
> and gnat on windows2000 replay "30"
>
> but i need more level of priority (255): how i can do?(if i can, of
> course)
You can't (at least easily). Not only the gnat implementation uses just
32 priorities, but these are mapped to underlying windows priorities,
which are only 7, if I remember correctly (yes, there's overlapping).
Take a look at the spec of System for more details.
If you need to play with real time semantics in gnat, be prepared to
have only 6 priorities (plus interruptions) and don't forget to specify
the ceiling locking policy, since that causes the executable to be put
in the windows real time priority class. Failing to do so, the dynamic
priorities of windows regular processes will screw up any attempt to
test tasking priorities semantics.
Cheers!
next prev parent reply other threads:[~2004-10-19 9:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 9:00 Gnat and priority level mferracini
2004-10-19 9:57 ` Martin Krischik
2004-10-19 9:58 ` Alex R. Mosteo [this message]
2004-10-19 10:21 ` mferracini
2004-10-19 11:18 ` Alex R. Mosteo
2004-10-19 11:50 ` Jerome Hugues
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox