From: Ted Dennison <dennison@telepath.com>
Subject: Re: Multitasking theory question
Date: Fri, 21 Jun 2002 02:13:58 GMT
Date: 2002-06-21T02:13:58+00:00 [thread overview]
Message-ID: <3D128BA9.8090707@telepath.com> (raw)
In-Reply-To: 3d123f34.0@news.unibw-muenchen.de
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.
next prev parent reply other threads:[~2002-06-21 2:13 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-20 20:46 Multitasking theory question Kai Schuelke
2002-06-20 20:53 ` Stephen Leake
2002-06-21 2:13 ` Ted Dennison [this message]
2002-06-24 3:18 ` AG
2002-06-24 4:13 ` tmoran
2002-06-24 4:24 ` AG
2002-06-24 7:33 ` Dale Stanbrough
2002-06-25 3:27 ` AG
2002-06-25 4:48 ` tmoran
2002-06-25 5:00 ` AG
2002-06-25 5:17 ` Darren New
2002-06-25 5:25 ` AG
2002-06-24 5:43 ` Mark Biggar
2002-06-24 6:48 ` AG
2002-06-24 15:14 ` Darren New
2002-06-24 16:19 ` Larry Kilgallen
2002-06-25 2:01 ` AG
2002-06-25 3:21 ` Darren New
2002-06-25 4:01 ` AG
2002-06-25 4:19 ` Darren New
2002-06-25 4:51 ` AG
2002-06-26 1:58 ` Darren New
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox