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,f00f4307a7546bf1,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!i40g2000cwc.googlegroups.com!not-for-mail From: "AAFellow@hotmail.com" Newsgroups: comp.lang.ada Subject: Ada Task Priorities (Windows vs Linux) Date: 12 Apr 2006 08:24:15 -0700 Organization: http://groups.google.com Message-ID: <1144855455.401847.282300@i40g2000cwc.googlegroups.com> NNTP-Posting-Host: 155.104.239.18 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1144855461 31200 127.0.0.1 (12 Apr 2006 15:24:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Apr 2006 15:24:21 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i40g2000cwc.googlegroups.com; posting-host=155.104.239.18; posting-account=_J4P3w0AAACnNF4AML-QgJSZOcM37xcL Xref: g2news1.google.com comp.lang.ada:3791 Date: 2006-04-12T08:24:15-07:00 List-Id: Hi Everyone, How are tasks prioritized in Ada when running on Linux (compared to Windows). I wrote a small test program that I ran in Windows, and it seems that the higher the number that I set the task's priority to, the higher the priority that is given to that task (I thought the opposite was true?) In Linux (using GNAT complier), how are the priorities mapped? I know a lower number means a higher priority, with a range of -20 to 19 and a default of 0. Do we just use these same numbers in the Ada code when setting the priorities of the tasks? Also, (so we can verify we have set the priorities correctly) does Linux provide a way to actually see what priority the OS has given to tasks that the Ada code has started? Are there any tools availible that can do this? thanks guys! AA