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-Thread: 103376,126ce244c524526b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Tasking issues Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1186851804.567302.223160@q4g2000prc.googlegroups.com> Date: Sun, 12 Aug 2007 14:05:48 +0200 Message-ID: NNTP-Posting-Date: 12 Aug 2007 14:05:40 CEST NNTP-Posting-Host: 09f68172.newsspool2.arcor-online.net X-Trace: DXC=FZUJbgQ1cT6D]ncZ]`hZ;1A9EHlD;3Yc24Fo<]lROoR1<`=YMgDjhg2Id1hQHnhC=6[6LHn;2LCV>[?3SPX: X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:1410 Date: 2007-08-12T14:05:40+02:00 List-Id: On Sun, 12 Aug 2007 12:06:52 +0100, Simon Wright wrote: > "Dmitry A. Kazakov" writes: > >> I don't understand, tasks are subject of scheduling and time >> sharing. They are switched even if they have something to do. > > If you are using an OS with preemptive tasking (eg VxWorks) ready > tasks are only switched when preempted by something of higher > priority. A task can voluntarily move itself to the back of the ready > queue for its priority by "delay 0.0;" (posssibly not RM-mandated > behaviour). > > Other OSs with this behaviour included (last time I had to find out) > Solaris for tasks in the RT class and Linux running the program as > root. Don't know about Windows. Yes, Windows too has 16 real-time and 16 time sharing priorities. But that's not Ada! (:-)) Ada is pragma Priority and other means to influence tasks scheduling. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de