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,8eff44ec1bcf8433 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-18 13:11:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: Thu, 18 Oct 2001 20:09:15 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <9qctpn$lil$1@news.huji.ac.il> <3BCC01B1.18C18C98@free.fr> <3BCC6CB7.20BAA30D@boeing.com> <3BCD2EC3.3B3C4498@free.fr> <3BCD91D9.C77668AA@free.fr> <8ghz7.32783$ev2.39537@www.newsranger.com> <3BCDB29B.EBD01D8C@free.fr> <3BCE9ACE.40B6BC3D@free.fr> <3BCF106E.254BF0D6@boeing.com> NNTP-Posting-Host: belenus.iks-jena.de X-Trace: branwen.iks-jena.de 1003435755 12204 217.17.192.34 (18 Oct 2001 20:09:15 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Thu, 18 Oct 2001 20:09:15 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:14912 Date: 2001-10-18T20:09:15+00:00 List-Id: * Jeffrey Carter wrote: >> Lutz Donnerhacke wrote: >>> Multiple tasks modifying the same data structure simultanously is a >>> common requirement for any larger application. > >Modifying an ordered structure such as a tree while iterating seems like a >recipe for disaster, even from a single thread. But it is a very common problem. Normally databases are involved to solve this problem on larger collections. >By "ordered" I mean a structure where the position of an Element within >the structure is determined by the value of the Element. What is the next >Element in the structure if the current Element has moved? Wrong preconditions. You talk about arrays, but even those needs not to be counted continously. Example: type offset is (one, two, four, five); for offset use (one => 1, two => 2, four => 4, five => 5); type example is array (offset) of Item;