comp.lang.ada
 help / color / mirror / Atom feed
From: Matthias Kretschmer <McCratch@gmx.net>
Subject: Re: Ada Tasks vs Linux processes
Date: Tue, 03 Apr 2001 12:28:02 +0100
Date: 2001-04-03T10:23:47+00:00	[thread overview]
Message-ID: <3AC9B3C2.C01BCCF@gmx.net> (raw)
In-Reply-To: 4R4y6.3229$R6.68334@news1.oke.nextra.no



Frank wrote:

> Hi!
>
> It seems to me (after some more searching in select -statement variations)
> that the I should use the construction select...or.._else_ to achieve what I
> intended.
>
> But this disussion brings another question to my mind; from some e-threads I
> read here I have got the impression that I _have_ to perform delay n; in the
> code so that all tasks get a slice of the execution (perhaps this goes for
> OS or CPU that does not handle HW multitasking or something?) Is this a
> true, or can I assume that Ada (and/or the OS it is running in) slices
> executions on every platform it is implemented?
> I can understand that a delay n; makes good sense if a task does not have to
> execute continously and a delay therefore can give execution slices to other
> tasks instead.
>

It is true, that on systems which do not support preemptive multitasking or on
which you ada-compiler doesn't support this, you need delay statements to switch
between threads. (e.g. the gnat on FreeBSD (from ports-collection 4.2-stable)
doesn't support the os-implementation of threads and simulates non-preemptive -
without delay statements on this system with this compiler your active thread
won't change)

>
> Frank




      reply	other threads:[~2001-04-03 11:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-01 15:27 Ada Tasks vs Linux processes Frank
2001-04-01 22:32 ` David C. Hoos, Sr.
2001-04-02 17:30   ` tmoran
2001-04-02 18:00     ` Robert A Duff
2001-04-02 18:20       ` Ehud Lamm
2001-04-02 22:17     ` Jeffrey Carter
2001-04-04 16:36       ` tmoran
2001-04-04 17:18         ` Gary Scott
2001-04-04 19:18           ` tmoran
2001-04-02 19:57   ` Frank
2001-04-03 11:28     ` Matthias Kretschmer [this message]
replies disabled

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