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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ce6f6f23c4e880ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-20 19:14:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!csulb.edu!newshub.sdsu.edu!west.cox.net!cox.net!p02!news2.east.cox.net.POSTED!53ab2750!not-for-mail Message-ID: <3D128BA9.8090707@telepath.com> From: Ted Dennison User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Multitasking theory question References: <3d123f34.0@news.unibw-muenchen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 21 Jun 2002 02:13:58 GMT NNTP-Posting-Host: 68.12.51.201 X-Complaints-To: abuse@cox.net X-Trace: news2.east.cox.net 1024625638 68.12.51.201 (Thu, 20 Jun 2002 22:13:58 EDT) NNTP-Posting-Date: Thu, 20 Jun 2002 22:13:58 EDT Organization: Cox Communications Xref: archiver1.google.com comp.lang.ada:26535 Date: 2002-06-21T02:13:58+00:00 List-Id: Kai Schuelke wrote: > 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? How tasks are implemented is up to the compiler. If the OS has support for lightweight processes (processes that share a global memory space with each other, aka "threads"), then the compiler usually implements tasks using those. If not, then typically it will simulate them within the program's process. I've even seen one compiler that implemented tasks using heavyweight processes and a shared memory section (this system broke down if you ever called a non-Ada routine that allocated memory). > 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? DOS has no process support of any kind, Win32 supports threads.