comp.lang.ada
 help / color / mirror / Atom feed
From: Jim Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Advantages
Date: Sun, 27 Jun 2004 18:32:59 GMT
Date: 2004-06-27T18:32:59+00:00	[thread overview]
Message-ID: <Xns95157F35D6EB6jimmaureenrogers@204.127.36.1> (raw)
In-Reply-To: mailman.165.1088318818.391.comp.lang.ada@ada-france.org

"Andrew Carroll" <andrew@carroll-tech.net> wrote in 
news:mailman.165.1088318818.391.comp.lang.ada@ada-france.org:

> Have any tests been done to show that Ada tasking features are better
> that other languages' "tasking" features if the model is the same?  If
> so, where are the results?  How much better were the Ada tasking
> features?

Ada concurrency features are generally at a higher abstraction level than
for other languages. The higher abstraction level has many benefits.
The higher abstraction level allows a particular target implementation to
be transparent to the Ada programmer, providing a high level of source
code portability. In languages such as C or C++ you must choose the
appropriate low level threading library, such as pthreads or winthreads.
The Ada concurrency model includes some very sophisticated concepts such
as read/write locks, monitors, condition variables, queued calls 
involving condition variables, programmer-defined queuing policies,
and conditional suspension of calls waiting in a queue (under the
control of the calling task).

All these features can be implemented using the threading facilities
of an underlying OS, or they can be implemented without an OS. The 
difference to the programmer is his choice of a compiler. Some Ada
compilers are specifically designed to produce code for a specific
OS while others are designed to produce code for bare hardware, with
no underlying OS.

>> I'm not saying someone can't do a better job with Ada - just that an
> OS is *really hard* to make stable and secure and it isn't something
> that can be done in a
>> few weekends of coding and hope it will somehow be better.
> What features of Ada help to make an OS stable and secure?  Bounds
> checking?  Typing?  Rendezvous?  Protected Objects?

All of those are tools that help the OS designer. They help because
each resolves several areas of uncertainty in implemented and executing
code.

Jim Rogers



  parent reply	other threads:[~2004-06-27 18:32 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-27  7:04 Advantages Andrew Carroll
2004-06-27 15:16 ` Advantages Nick Roberts
2004-06-27 21:22   ` Advantages Pascal Obry
2004-06-28  0:51   ` Advantages Robert I. Eachus
2004-06-28  1:59     ` Advantages Brian May
2004-06-29  0:24       ` Advantages Randy Brukardt
2004-06-29  3:32         ` Advantages Hyman Rosen
2004-06-29 18:41           ` Advantages Randy Brukardt
2004-07-02  0:49             ` Advantages Brian May
2004-07-02  1:31               ` Advantages Jeffrey Carter
2004-07-02  9:13               ` Advantages Dmitry A. Kazakov
2004-07-02 12:27               ` Advantages Marin David Condic
2004-07-04 17:42       ` Advantages Robert I. Eachus
2004-06-28 12:08   ` Advantages Marin David Condic
2004-06-27 18:32 ` Jim Rogers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-28  9:52 Advantages Lionel.DRAGHI
     [not found] <20040628005515.0A1E74C4160@lovelace.ada-france.org>
2004-06-28  6:23 ` Advantages Andrew Carroll
2004-06-28 14:44   ` Advantages Jacob Sparre Andersen
2004-07-04 18:11   ` Advantages Robert I. Eachus
2004-06-26  6:28 Advantages Andrew Carroll
2004-06-25 19:41 Advantages Andrew Carroll
     [not found] <20040624170516.B4DFC4C4110@lovelace.ada-france.org>
2004-06-25 12:24 ` Advantages Andrew Carroll
2004-06-25 12:22   ` Advantages Peter Amey
2004-06-26 20:43   ` Advantages Marin David Condic
replies disabled

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