comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: How to simulate semaphores with Ada's tasks?
Date: Wed, 24 Aug 2016 18:04:46 -0700
Date: 2016-08-24T18:04:46-07:00	[thread overview]
Message-ID: <nplg7f$5st$1@dont-email.me> (raw)
In-Reply-To: <35ae841e-5947-44e9-a8d4-479cf40c4277@googlegroups.com>

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


  reply	other threads:[~2016-08-25  1:04 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 [this message]
2016-08-25  1:44   ` Andrew Shvets
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