From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7d2a1bc8d768974f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Gnat and priority level Date: Tue, 19 Oct 2004 11:58:02 +0200 Message-ID: <4174E52A.60405@mailinator.com> References: <1098176457.332197.157030@z14g2000cwz.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de iyWSRHh2VBT7uQjVjZU1mQGBINLqnXtGIjHZISjUVjGC5yI2g= User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en In-Reply-To: <1098176457.332197.157030@z14g2000cwz.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:5439 Date: 2004-10-19T11:58:02+02:00 List-Id: 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!