comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Lundin" <b.f.lundin@gmail.com>
Subject: Re: Tasking without Protected Objects.
Date: Tue, 31 Jan 2017 17:53:23 +0100
Date: 2017-01-31T17:53:23+01:00	[thread overview]
Message-ID: <o6qfbc$tf9$1@dont-email.me> (raw)
In-Reply-To: <095bc904-c60a-4521-a1a2-8f8b095a4b53@googlegroups.com>

On 2017-01-31 15:33, patrick@spellingbeewinnars.org wrote:
> Hi Everyone
> 
> I haven't been able to program much over the past month or two, what I have written in Ada are toy sized.
> > For fun I have been trying to restrict myself to Ada 83 with the use of Pragma Ada_83 .
> 
> I am assuming that if Ada 83 sucked so bad then there would have been an Ada 84 revision not Ada 95.
> 
> I don't think I need very complex tasking. I don't think I need one task to call another,
> I just need the main task/thread to communicate with the other tasks. 
> I am trying not to use the protected object feature from Ada 95,
> I am hoping shared variables will work.
> 

A common pattern in our old code was to have a serializing tasks.
That is a task that today would have been written as a protected object.

It held the data in local structures - perhaps in its body or in a
package body that only this task could access.

Then, the rest of the tasks as well as the main thread,
accessed the data via the serialization task.


-- 
--
Björn

  parent reply	other threads:[~2017-01-31 16:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 14:33 Tasking without Protected Objects patrick
2017-01-31 14:52 ` Dmitry A. Kazakov
2017-01-31 16:47 ` J-P. Rosen
2017-01-31 16:53 ` Björn Lundin [this message]
2017-01-31 17:53   ` patrick
2017-01-31 17:40 ` Jeffrey R. Carter
2017-01-31 17:55   ` patrick
replies disabled

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