comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen)
Subject: Re: Will (abstract) Ada code improve over time ?
Date: 29 Jul 2001 07:39:05 -0500
Date: 2001-07-29T07:39:05-05:00	[thread overview]
Message-ID: <lquk6ID$oN6D@eisner.encompasserve.org> (raw)
In-Reply-To: 9k03ot$2me$3@news.tpi.pl

In article <9k03ot$2me$3@news.tpi.pl>, taw@pb220.legnica.sdi.tpnet.pl (Tomasz Wegrzanowski) writes:

> Not true, because C uses hardware/OS threading model, while Ada uses own
> threading model, so unless hardware and OSes will be designed for Ada,
> C code will perform better (C code can change threading model if
> hardware/OS design changes with no problem).

You do not know, without looking under the covers (of the documentation)
what tasking _mechanism_ is being used.  Some Ada compilers use that
of the OS/hardware, while other Ada compilers use a tasking _mechanism_
of their own.  Some offer a choice, but regardless of the _mechanism_
used, the _model_ presented by Ada is the same.  The _model_ is where
your program must conform.  With Ada there is only one.

One possible reason for _not_ using the OS/hardware mechanism is the
performance cost of a context switch.  If your compiler offers such
an option, you can make a choice without much human effort.




  parent reply	other threads:[~2001-07-29 12:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18 11:34 Will (abstract) Ada code improve over time ? Reinert Korsnes
2001-07-18 11:42 ` Lutz Donnerhacke
2001-07-19 17:29   ` Tomasz Wegrzanowski
2001-07-20  8:15     ` Lutz Donnerhacke
2001-08-03 17:38   ` Dale Pontius
2001-08-03 21:32     ` Florian Weimer
2001-07-18 13:33 ` Preben Randhol
2001-07-19 17:31   ` Tomasz Wegrzanowski
2001-07-19 17:46     ` Ed Falis
2001-07-20  7:35   ` Reinert Korsnes
2001-07-20  8:46     ` Jacob Sparre Andersen
2001-07-26  0:52       ` Corey Ashford
2001-07-29  4:34         ` Tomasz Wegrzanowski
2001-07-29  5:47           ` AG
2001-07-29  5:56           ` tmoran
2001-07-29  8:20           ` Pascal Obry
2001-07-29 12:39           ` Larry Kilgallen [this message]
2001-07-29 14:08           ` Florian Weimer
replies disabled

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