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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,b804c954968a5651 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-28 01:00:59 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dns.phoenix-ag.de!news.uni-stuttgart.de!news.belwue.de!not-for-mail From: "Peter F. Gath" Newsgroups: comp.lang.ada Subject: Re: Gnat 3.13p on NT - protected objects Date: Thu, 28 Jun 2001 10:00:41 +0200 Organization: IFR - University of Stuttgart Message-ID: <3B3AE429.5999642B@ifr.uni-stuttgart.de> References: Reply-To: Peter.Gath@ifr.uni-stuttgart.de NNTP-Posting-Host: ifr59.luftfahrt.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Mozilla 4.77 [en] (WinNT; U) X-Accept-Language: de,en,en-US,en-GB Xref: archiver1.google.com comp.lang.ada:9181 Date: 2001-06-28T10:00:41+02:00 List-Id: Hi Alex. We have also experienced this problem. Right now, we are using some basic= Windows NT functions to change the priority. Below is a small test program you might want to try. It works fine for our application, and a similar approach should be possible when you work with different threads or tasks. Good luck, Peter 8<----------------- with Ada.Text_IO; use Ada.Text_IO; with win32; with win32.winbase; procedure Testprio is use type Win32.BOOL; check : Win32.BOOL; begin put_line("Program has normal priority class now."); put_line("In 20 seconds, priority class will be changed..."); delay(20.0); check :=3D Win32.Winbase.SetPriorityClass( win32.Winbase.GetCurrentProcess, Win32.Winbase.IDLE_PRIORITY_CLASS); put_line("Program is running as idle process now."); put_line("Program is terminated in 20 seconds..."); delay(20.0); end Testprio; 8<----------------- "Alejandro R. Mosteo" wrote: > = > Hello all. > = > I'm using Gnat for a student project. I've recently learned that Gnat o= n > NT doesn't change priority of threads when entering a protected call. I= n > other words, the ceiling priority is not set and the thread runs at a > lower priority that it should run. > = > I've looked the assembler code generated and it seems true. I'm quite > perplexed, since I've never read nothing related in the docs, and never= > before anybody has told nothing about that. > = > Can someone enlighten me a bit? Exists some easy work around for this > "feature"? > = > Many thanks, > = > =C1lex. > = > ------------------------------------------- > Alejandro R. Mosteo > mailto: 402450@cepsz.unizar.uu_remove_uu.es > ------------------------------------------- -- = ____________________________________________________________ Peter F. Gath University of Stuttgart Dipl.-Ing. Institute of Flight Mechanics and Control Pfaffenwaldring 7a D-70550 Stuttgart Germany Tel.: +49 711 - 6 85 - 66 67 Fax : +49 711 - 6 85 - 66 70 Email: peter.gath@ifr.uni-stuttgart.de http://www.ifr.uni-stuttgart.de/ ____________________________________________________________