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: a07f3367d7,4fe1e6b66c35dfe2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,CP1252 Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.musoftware.de!wum.musoftware.de!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: About task-safeness Date: Thu, 03 Feb 2011 11:13:25 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <06ecb5ab-a9e5-4a5d-9370-6bbe137d3693@glegroupsg2000goo.googlegroups.com> <8qv8neF9i0U1@mid.individual.net> <4d4a8c88$0$6773$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: e3be397b418f2e434e33e86a5c8e3079 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ed391d5aa3a4286b521750bb936fa91b X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=ed391d5aa3a4286b521750bb936fa91b X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:17823 Date: 2011-02-03T11:13:25-07:00 List-Id: On 02/03/2011 04:22 AM, AdaMagica wrote: > > You mean C.1(11-12): > (11) It is recommended that intrinsic subprograms be provided for > convenient access to any machine > operations that provide special capabilities or efficiency and that > are not otherwise available through the > language constructs. Examples of such instructions include: > (12) � Atomic read-modify-write operations � e.g., test and set, > compare and swap, decrement and test, > enqueue/dequeue. > > But N := N + 1; is not such an operation even if N is atomic. An > implementation would have to provide something like a CAS operation. Those are examples of such operations, which will differ from machine to machine. If a machine offers an atomic increment operation, a compiler implementing Annex C should provide a subprogram to use it. -- Jeff Carter "How'd you like to hide the egg and gurgitate a few saucers of mocha java?" Never Give a Sucker an Even Break 101