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-Thread: 103376,b4b864fa2b61bbba X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.71.11 Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nntpfeed.proxad.net!news.netfinity.fr!feeder.news-service.com!feeder3.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Parallel Text Corpus Processing with Ada? References: <1194735959.240323.38210@v2g2000hsf.googlegroups.com> <1t1ab1hzsng9p.101gcl2uomeoy.dlg@40tude.net> <1194821365.830120.106600@o3g2000hsb.googlegroups.com> <1195083519.791396.162260@22g2000hsm.googlegroups.com> Date: Thu, 15 Nov 2007 10:39:59 +0100 Message-ID: <87k5oj3l00.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:MnYpmCrP13XSSCJYiIWbXzafRpw= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tele2 X-Trace: DXC=6c8jX1Foj5hni717EgDPgm6`Y6aWje^Yj;5b2X_cH:4am@[o=d]MiOm8e[W?MA4bXihAFcR^Z0>dm Xref: g2news1.google.com comp.lang.ada:18416 Date: 2007-11-15T10:39:59+01:00 List-Id: braver writes: > On Nov 14, 1:45 am, Simon Wright wrote: >> You did spot that Ada.Containers aren't task-safe? (ie, you need to >> lock the containers yourself ...) > > Man, that's a problem! What about BCs, are they task-safe? What do > folks do to use Ada.Containers in a tasking setup, and why on Earth > would they be in a standard and contardict some other chapters such > as the tasks? They do not contradict the tasking; on the contrary they are orthogonal to tasking. This way, if you do not need tasking, the containers do not force you to pay the price of tasking. You can wrap a container in a protected object if you want concurrent access. Alternatively, you can have one container per task (private to that task, so not protection needed). Before starting each task, you Move elements into that task's private container. -- Ludovic Brenta.