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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4215feeab2a8154a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!18g2000yqa.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: C++0x and Threads - a poor relation to Ada's tasking model? Date: Wed, 12 Aug 2009 08:00:30 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6dac2b2b-2668-4f33-ab68-2f63325bc5e5@18g2000yqa.googlegroups.com> References: <7q2385104kihs87d79p8kfphuoki6r01vq@4ax.com> <81a101a3-b46e-4268-973c-356c6119ee2b@c14g2000yqm.googlegroups.com> NNTP-Posting-Host: 137.138.182.236 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1250089230 24918 127.0.0.1 (12 Aug 2009 15:00:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Aug 2009 15:00:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 18g2000yqa.googlegroups.com; posting-host=137.138.182.236; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.13) Gecko/2009073021 Firefox/3.0.13,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7698 Date: 2009-08-12T08:00:30-07:00 List-Id: On 12 Sie, 07:29, stefan-lu...@see-the.signature wrote: > This is easy, since "%s\n" is a constant. Of course. And *static* analysis of keyword-based multitasking usage patterns is also easy *only* if these patterns are in some way constant (static). Nothing prevents me from screwing up an instance of Ada.Containers.Vectors.Vector, Ada.Text_IO.File_Type, or just about anything else if I use it from multiple tasks without wrapping it in the protected object. (that's what I have done recently) It is *exactly* the same problem - you can always make the analysis difficult by moving from static to dynamic. What does it prove? -- Maciej Sobczak * www.msobczak.com * www.inspirel.com Database Access Library for Ada: www.inspirel.com/soci-ada