From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Ada 2012 automatic concurrency?
Date: Wed, 26 Dec 2012 17:02:26 -0500
Date: 2012-12-26T17:02:26-05:00 [thread overview]
Message-ID: <nospam-67FE17.17022626122012@news.aioe.org> (raw)
In-Reply-To: af146e53-f736-4c59-8015-60a90d9f5fcf@googlegroups.com
In article <af146e53-f736-4c59-8015-60a90d9f5fcf@googlegroups.com>,
charleshixsn@earthlink.net wrote:
> In the RM I read (page 209):
> NOTES
> 1 Concurrent task execution may be implemented on multicomputers,
> multiprocessors, or with interleaved execution on a single physical
> processor. On the other hand, whenever an implementation can
> determine that the required semantic effects can be achieved when
> parts of the execution of a given task are performed by different
> physical processors acting in parallel, it may choose to perform them
> in this way.
>
> ----------------
> Does this imply that if I use protected types, that the code will
> automatically be run concurrently on a multiprocessor system, or
> might automatically be run concurrently?
Perhaps, to the extent possible, but Ada 95 Rationale, Section 9.1
Protected Types suggests that the approach was chosen, in part, to
"enable the implementation of a synchronization mechanism that scales
smoothly from a single processor to a multiprocessor."
Similar language appeared in the Ada 83 LRM, Section 9: Tasks, and it
has remained unchanged since Ada 95, Section 9: Tasks and
Synchronization.
> If so, does Gnat do this?
I don't know what it does currently, but I recall an older version
targeting Mac OS 9: absent preemptive multi-tasking, the implementation
used an available FSU threads library. Protected types proved ideal for
synchronizing access to the platform's single-threaded GUI library.
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
next prev parent reply other threads:[~2012-12-26 22:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-25 17:26 Ada 2012 automatic concurrency? charleshixsn
2012-12-26 22:02 ` John B. Matthews [this message]
2012-12-26 22:55 ` Niklas Holsti
2012-12-27 5:57 ` charleshixsn
2012-12-27 8:59 ` Dirk Heinrichs
2012-12-27 11:22 ` Brian Drummond
2012-12-27 22:13 ` Randy Brukardt
2012-12-27 14:27 ` Jeffrey Carter
2012-12-27 20:13 ` tmoran
2012-12-27 19:06 ` Niklas Holsti
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox