comp.lang.ada
 help / color / mirror / Atom feed
From: Lutz Donnerhacke <lutz@iks-jena.de>
Subject: Re: problem of read and write
Date: Wed, 11 Dec 2002 09:37:12 +0000 (UTC)
Date: 2002-12-11T09:37:12+00:00	[thread overview]
Message-ID: <slrnave1q7.jk.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: mailman.1039593002.2252.comp.lang.ada@ada.eu.org

* Francisco Santoyo wrote:
> I have two tasks, one write in some objects and the other read from
> them. 
>
> How can I avoid that the reader task read the first object before that
> the writer task finish to write the last?.

Depending on your problem you can collect all those objects into a protected
type or use a semaphore (also a protected type) to synchonize a long term
access.



       reply	other threads:[~2002-12-11  9:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1039593002.2252.comp.lang.ada@ada.eu.org>
2002-12-11  9:37 ` Lutz Donnerhacke [this message]
2002-12-13  2:03   ` problem of read and write Craig Carey
2002-12-13  4:51     ` Dennis Lee Bieber
2002-12-13 21:45     ` Dennis Lee Bieber
2002-12-13  8:19 Grein, Christoph
replies disabled

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