comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@futureapps.invalid>
Subject: Re: can someone help me with this code (explanation)
Date: Fri, 26 Sep 2014 18:08:22 +0200
Date: 2014-09-26T18:08:22+02:00	[thread overview]
Message-ID: <m0431m$os2$1@dont-email.me> (raw)
In-Reply-To: <m040rm$8em$1@dont-email.me>

On 26.09.14 17:31, Björn Lundin wrote:
> On 2014-09-26 16:49, J-P. Rosen wrote:
>> Le 26/09/2014 16:15, Björn Lundin a écrit :
>>> http://www.sigada.org/conf/sa98/papers/mueller.pdf
>>>
>>> I did not read all of it, but the conclusion is that
>>> context switches are bad for performance.
>>> If a protected object can REPLACE a task, it
>>> will show in measurements. (and they did measure)
>>
>> That's a paper from 16 years ago. Computers as well as compilers have
>> evolved a lot, therefore I would not trust the paper for making a
>> decision nowadays...
>>
>
> Yes, I did point that out.
> But still, I have no problem believing
> that context switches still is bad for performance.

Task switches, or tasks in the first place, are,
apparently, heavy weight. That's by comparing two Ada programs,

http://benchmarksgame.alioth.debian.org/u64q/program.php?test=threadring&lang=gnat&id=2

to

http://benchmarksgame.alioth.debian.org/u64q/program.php?test=threadring&lang=gnat&id=4

and then both of them to the "different kind" of parallelism
exhibited by the leading entries. The leading entries are faster by
an orders of magnitude, even though the faster Ada program uses
just semaphores.

It might be better for Ada if at least the parallel loop initiatives
announced in Ada Letters are getting somewhere. I'm just guessing at
the effectiveness WRT async little things, though.



  reply	other threads:[~2014-09-26 16:08 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-25 13:44 can someone help me with this code (explanation) Stribor40
2014-09-25 14:56 ` Björn Lundin
2014-09-25 15:01   ` Björn Lundin
2014-09-25 15:54   ` Stribor40
2014-09-25 17:11     ` Niklas Holsti
2014-09-25 19:41       ` Stribor40
2014-09-25 19:53         ` Jeffrey Carter
2014-09-25 20:10         ` Niklas Holsti
2014-09-25 22:27           ` Jeffrey Carter
2014-09-26  7:04             ` Björn Lundin
2014-09-26  7:58               ` J-P. Rosen
2014-09-26 10:24                 ` G.B.
2014-09-26 11:48                 ` Björn Lundin
2014-09-26 12:49                   ` J-P. Rosen
2014-09-26 14:15                     ` Björn Lundin
2014-09-26 14:49                       ` J-P. Rosen
2014-09-26 15:31                         ` Björn Lundin
2014-09-26 16:08                           ` G.B. [this message]
2014-09-30  4:22                             ` Brad Moore
2014-09-30 21:59                               ` Georg Bauhaus
2014-10-01 15:38                                 ` Brad Moore
2014-09-26 16:23                           ` Dmitry A. Kazakov
2014-09-26 20:38                           ` J-P. Rosen
2014-09-27 18:16                             ` Björn Lundin
2014-09-26 16:43                       ` Niklas Holsti
2014-09-26 16:45                 ` Niklas Holsti
2014-10-09  2:45                   ` Randy Brukardt
2014-09-26 16:44             ` Niklas Holsti
2014-09-26  5:06           ` J-P. Rosen
2014-09-25 16:53 ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox