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,ba64abab65501cce X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ada and multicore References: <6cf157bb.0503311754.7615130f@posting.google.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 01 Apr 2005 13:19:34 GMT NNTP-Posting-Host: 209.165.23.163 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.atl.earthlink.net 1112361574 209.165.23.163 (Fri, 01 Apr 2005 05:19:34 PST) NNTP-Posting-Date: Fri, 01 Apr 2005 05:19:34 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:10220 Date: 2005-04-01T13:19:34+00:00 List-Id: Of course, the caveat has to be that the compiler and possibly the underlying OS (if there is one - the RTK if not) has to have adequate support for multi-threaded applications or you're not going to realize a performance advantage. Naturally, this is also true for any other language that has some kind of multi-threading capability. If one is truly interested in getting the advantages Ada can offer in terms of performance via multitasking, be sure to do adequate research up front and make sure you REALLY understand tasking & its possible implications. I've seen programs that have numerous tasks in them designed by people who probably didn't really understand what they were doing and they don't get a performance gain - or they take a performance hit. Check the compiler & OS first. Start with *simple* uses of multitasking. Learn and understand what it does before trying to use it in critical applications. MDC tmoran@acm.org wrote: >>What is a special benefit than c or c++ on multicore cpus? > > Ada has robust multitasking built in, which makes it simpler and more > natural to write programs that take advantage of multiple processors. > Ada programmers are thus also more likely to be comfortable with writing > for multitasking. > In another thread here, some Ada versions of a simple word counting > benchmark were compared to C versions. But a multitasking Ada version, > a simple modification of the straightforward single tasking version, was > shown to run about 50% faster on a dual CPU system. -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "'Shut up,' he explained." -- Ring Lardner ======================================================================