comp.lang.ada
 help / color / mirror / Atom feed
* Multitasking theory question
@ 2002-06-20 20:46 Kai Schuelke
  2002-06-20 20:53 ` Stephen Leake
  2002-06-21  2:13 ` Ted Dennison
  0 siblings, 2 replies; 22+ messages in thread
From: Kai Schuelke @ 2002-06-20 20:46 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2002-06-26  1:58 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-20 20:46 Multitasking theory question Kai Schuelke
2002-06-20 20:53 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox