comp.lang.ada
 help / color / mirror / Atom feed
* How to simulate semaphores with Ada's tasks?
@ 2016-08-25  0:41 Andrew Shvets
  2016-08-25  1:04 ` Jeffrey R. Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Andrew Shvets @ 2016-08-25  0:41 UTC (permalink / raw)


From what I've read, tasks do not have semaphores that can permit it to lock a piece of memory and prevent it from being accessed, is this correct?

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?


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-08-28  1:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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.

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