From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,45660b0456d3a094 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-11 01:37:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.vmunix.org!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: problem of read and write Date: Wed, 11 Dec 2002 09:37:12 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1039599432 331 217.17.192.37 (11 Dec 2002 09:37:12 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 11 Dec 2002 09:37:12 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:31678 Date: 2002-12-11T09:37:12+00:00 List-Id: * 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.