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,f15b862e11b575a4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!postbox2.readnews.com!not-for-mail Date: Thu, 03 Mar 2011 16:58:53 -0500 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.14) Gecko/20110221 Thunderbird/3.1.8 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Air traffic control system in Java References: <4d6ffe16$0$17930$a8266bb1@postbox2.readnews.com> <4d7007ba$0$17957$a8266bb1@postbox2.readnews.com> <4d7009ba$0$17936$a8266bb1@postbox2.readnews.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4d700f1e$0$17931$a8266bb1@postbox2.readnews.com> NNTP-Posting-Host: 198.186.190.52 X-Trace: 1299189534 postbox2.readnews.com 17931 198.186.190.52:32786 Xref: g2news2.google.com comp.lang.ada:18759 Date: 2011-03-03T16:58:53-05:00 List-Id: On 3/3/2011 4:44 PM, Vinzent Hoefler wrote: > Did you know that not even the scheduling is defined by the language, > although Java threads sure can have a priority assigned? Yet, there's > no guarantee that the highest priority task will even run. This sounded false to me, so I looked: The Real-time Specification for Java With the RTSJ, true priorities and a fixed-priority preemptive scheduler with priority-inheritance support is required for RT threads. This scheduling approach ensures that the highest- priority active thread will always be executing and it continues to execute until it voluntarily releases the CPU or is preempted by a higher-priority thread. Priority inheritance ensures that priority inversion is avoided when a higher-priority thread needs a resource held by a lower-priority thread.