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,30dd116614f4610e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Protected Objects And Many Processors Date: Fri, 21 Jan 2011 12:55:22 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <4d39cbde$0$6882$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: 70c65de6e7c6760888b09bc51bd37662 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dee8910bd059f16c98353a725e7750de 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: <4d39cbde$0$6882$9b4e6d93@newsspool2.arcor-online.net> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=dee8910bd059f16c98353a725e7750de 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:17589 Date: 2011-01-21T12:55:22-07:00 List-Id: On 01/21/2011 11:09 AM, Georg Bauhaus wrote: > > Are protected objects still the best choice on a computer > that has many processors and/or cores? > > Will the program run just as well when written with only task > objects if and when the number of available processors is > sufficient, that is, C> N? I presume you refer to using tasks in place of the protected objects (perhaps what were called "passive tasks" back in the Ada-83 days). There are 2 ways I can think of in which protected objects might be better than tasks when you have a processor for each task. Both relate to protected functions: 1. In theory, you can have multiple simultaneous calls to protected functions. I'm not sure there's any implementation that does this, but it is possible. 2. Protected functions can return indefinite types with actual values determined by the function; task entries are constrained to the size of objects provided by the caller. Whether these are important considerations for a given application is a different matter. -- Jeff Carter "It's all right, Taggart. Just a man and a horse being hung out there." Blazing Saddles 34