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,ee1e7bdc743a3545 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!195.71.90.67.MISMATCH!news.unit0.net!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Charmed Snark Newsgroups: comp.lang.ada Subject: Re: Multicore problem Date: Wed, 10 Mar 2010 18:00:26 +0000 (UTC) Organization: The Snarky Insanitorium Message-ID: References: <80b7542b-38d7-4da2-aa50-1c734b3c516c@q2g2000pre.googlegroups.com> <4b968f0e$0$1996$4f793bc4@news.tdc.fi> <71a2ea77-f97d-4e48-ba82-8322974f5c2b@s36g2000prh.googlegroups.com> <095dc775-e214-4ccd-bf26-45ab27b3b277@s36g2000prh.googlegroups.com> Injection-Date: Wed, 10 Mar 2010 18:00:26 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="10190"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Z2n+PGsyZHYt9r5kb+TjehoUwsWDkc/I=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:xyGoG31I5+CPDS1/vl4GxRpk4YQ= Xref: g2news1.google.com comp.lang.ada:9511 Date: 2010-03-10T18:00:26+00:00 List-Id: Anatoly Chernyshev expounded in news:095dc775-e214-4ccd-bf26-45ab27b3b277 @s36g2000prh.googlegroups.com: > Thanks a lot to all responded. What is clear now is that the problem > is rather complicated. I guess, I'd better be off with distributing > the calculation over several PCs, with one task on each. I was wondering about these issues in connection with pthreads. I have a basic interpreter project (https://sourceforge.net/projects/bdbbasic) where I was considering implementing matrix operations in multiple threads. The net wisdom suggested that the thread startup cost was around 100usec as a general rule. However, that appears to be only the beginning of important considerations. ;-) >From the related post here, it seems that the matrix might need to be huge to be of benefit. But even then, as the cores and cache interact, this might not improve performance. Interesting stuff indeed. Then when you add this to multiple platforms, a project designer really gets his hands dirty.. Warren