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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ce6f6f23c4e880ad,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-20 13:46:46 PST From: "Kai Schuelke" Newsgroups: comp.lang.ada Subject: Multitasking theory question Date: Thu, 20 Jun 2002 22:46:44 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: bl15-1107.studfb.unibw-muenchen.de Message-ID: <3d123f34.0@news.unibw-muenchen.de> X-Trace: 20 Jun 2002 22:46:44 +0100, bl15-1107.studfb.unibw-muenchen.de Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!newsfeed.r-kom.de!news-nue1.dfn.de!uni-erlangen.de!lrz.de!news.unibw-muenchen.de!bl15-1107.studfb.unibw-muenchen.de Xref: archiver1.google.com comp.lang.ada:26520 Date: 2002-06-20T22:46:44+02:00 List-Id: Hello, during my programming course we learned about tasks, too. One qustion that couldn't be answered was: Is an Ada-Task a process of the operating system or is it a kind of process inside the whole program? I tend to agree with the second opinion, based on what I have seen during some personal "experiments". But it seems to depend on how the compiler handles the tasks. The example consisted of two tasks. In one case, using DOS and an old Ada83 compiler the second task never could do anything, because all resources (CPU-Time) where blocked by Task #1. The same code run in a WinNT DOS-Box and compiled with the actual Aonix compiler switched between the task with intervals of about 1 second. Under DOS tasks ran cooperative, under Win preemtive. Why this difference? Is it because of the OS, the compiler or the change from Ada83 to Ada95? Thanks a lot Kai Schuelke