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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b804c954968a5651 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-30 11:14:46 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!fu-berlin.de!uni-berlin.de!193-153-255-177.uc.nombres.ttd.ES!not-for-mail From: Alejandro R. Mosteo <402450@cepsz.unizar.es> Newsgroups: comp.lang.ada Subject: Re: Gnat 3.13p on NT - protected objects Date: Sat, 30 Jun 2001 20:13:08 +0200 Organization: TruliSoft Corp. Message-ID: References: <3B3AE429.5999642B@ifr.uni-stuttgart.de> NNTP-Posting-Host: 193-153-255-177.uc.nombres.ttd.es (193.153.255.177) X-Trace: fu-berlin.de 993924884 14679024 193.153.255.177 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.30 Xref: archiver1.google.com comp.lang.ada:9282 Date: 2001-06-30T20:13:08+02:00 List-Id: Peter F. Gath ha escrito esto previamente: > 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 Many thanks, Peter. I was aware of that function and his companion SetThreadPriority. I think that it's the later what I need now (since I set the REALTIME class only once at the beginning of the application). My problem was that I was trying to change the priority with Set_Priority within the protected object, which is forbidden by ARM. Now, I see that I can try the same with SetThreadPriority, and this should work. (How I don't think that at first??? Too much "Ada thinking", I presume: can't thing anything out of Ada). It's still a little pain to make that calls in every service of my protected servers, but nothing compared with doing such calls from every client! Cheers! ------------------------------------------- Alejandro R. Mosteo mailto: 402450@cepsz.unizar.uu_remove_uu.es -------------------------------------------