From: Andrew Shvets <andrew.shvets@gmail.com>
Subject: Re: How to simulate semaphores with Ada's tasks?
Date: Wed, 24 Aug 2016 18:44:25 -0700 (PDT)
Date: 2016-08-24T18:44:25-07:00 [thread overview]
Message-ID: <b3697740-0f96-49fe-9d8c-f61d67d2a3ab@googlegroups.com> (raw)
In-Reply-To: <nplg7f$5st$1@dont-email.me>
On Wednesday, August 24, 2016 at 9:04:50 PM UTC-4, Jeffrey R. Carter wrote:
> On 08/24/2016 05:41 PM, Andrew Shvets wrote:
> >
> > If so, then the best possible way to simulate this is to have tasks send
> > messages to one another and synchronize when something is locked/unlocked.
> > Is there a better approach?
>
> Yes, you use protected objects.
>
> --
> Jeff Carter
> "He had no conception of the instrument. He
> was blowing into it."
> Take the Money and Run
> 135
Noted. Reading up on it right now.
Thank you.
next prev parent reply other threads:[~2016-08-25 1:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-25 0:41 How to simulate semaphores with Ada's tasks? Andrew Shvets
2016-08-25 1:04 ` Jeffrey R. Carter
2016-08-25 1:44 ` Andrew Shvets [this message]
2016-08-27 21:36 ` Andrew Shvets
2016-08-28 1:04 ` Jeffrey R. Carter
2016-08-28 1:59 ` Andrew Shvets
2016-08-25 7:39 ` Dmitry A. Kazakov
2016-08-27 18:06 ` Andrew Shvets
2016-08-25 7:55 ` G.B.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox