comp.lang.ada
 help / color / mirror / Atom feed
From: "Kai Schuelke" <kai.schuelke@gmx.net>
Subject: Multitasking theory question
Date: Thu, 20 Jun 2002 22:46:44 +0200
Date: 2002-06-20T22:46:44+02:00	[thread overview]
Message-ID: <3d123f34.0@news.unibw-muenchen.de> (raw)

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





             reply	other threads:[~2002-06-20 20:46 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20 20:46 Kai Schuelke [this message]
2002-06-20 20:53 ` Multitasking theory question Stephen Leake
2002-06-21  2:13 ` Ted Dennison
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