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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8eff44ec1bcf8433 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-17 06:36:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator2-austin!propagator!feed2.newsfeeds.com!newsfeeds.com!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9qctpn$lil$1@news.huji.ac.il> <3BCC01B1.18C18C98@free.fr> <3BCC6CB7.20BAA30D@boeing.com> <3BCD2EC3.3B3C4498@free.fr> Subject: Re: Container reqs Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 17 Oct 2001 09:36:13 EDT Organization: http://www.newsranger.com Date: Wed, 17 Oct 2001 13:36:13 GMT Xref: archiver1.google.com comp.lang.ada:14800 Date: 2001-10-17T13:36:13+00:00 List-Id: In article <3BCD2EC3.3B3C4498@free.fr>, Jean-Marc Bourguet says... > >4) whatever you do -- trying to modify the datastructure simultaneously >via iterators from different tasks -- is save. > >>From my experience, > * level 4 is useless because you still need synchronisation > for other reasons when its whole generality is needed. Achieving it > has a major performance impact (every operation has to be >protected). But your "level 4" is exactly what is needed for the "gender-bender" server-to-server queue we were referring to. This is a *quite* common need. Its come up in every multitasking Ada app I've ever written of at least moderate complexity. Your assertion is quite wrong too. When used as I described, it is the *only* communication the two server tasks need. In fact, it is the only safe communication method they can have. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.