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,126ce244c524526b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news.cs.univ-paris8.fr!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Tasking issues Date: Sun, 12 Aug 2007 12:06:52 +0100 Organization: Pushface Message-ID: References: <1186851804.567302.223160@q4g2000prc.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1186916812 4112 62.49.19.209 (12 Aug 2007 11:06:53 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 12 Aug 2007 11:06:52 +0000 (UTC) Cancel-Lock: sha1:SSoEKtwDPNbnbRc4R0419GKA2LY= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Xref: g2news2.google.com comp.lang.ada:1409 Date: 2007-08-12T12:06:52+01:00 List-Id: "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.