comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: GTK and tasking (GNAT)
Date: Sun, 04 May 2014 15:07:48 -0600
Date: 2014-05-04T15:07:48-06:00	[thread overview]
Message-ID: <F_x9v.554097$Eh6.322463@fx11.iad> (raw)
In-Reply-To: <bsnmu4Fu83qU1@mid.individual.net>

On 04-May-14 14:40, hreba wrote:
>
> After the experience with my small exercise here, without tasking, I
> would expect the progress bar to jump from 0 to 1 at the end of a
> lengthy calculation instead of increasing steadily.
>
> This kind of life display is one reason for me to worry about tasking.

The problem isn't tasking, it's decomposition.
If the "lengthy function" cannot be broken down then there are only two 
points that we can really know: start, and finished. (i.e 0.0 & 1.0)

If, on the other hand, we can break it down, say into eighths, we get:
0.0, 0.125, 0.250, 0.375, 0.500, 0.625, 0.75, 0.875, 1.000
Which is n+1 states, where n is the cardinality of the resolution of 
"breaking it down". ( As an example regarding DB-access/-processing 
being so decomposed, watch this: 
https://www.youtube.com/watch?v=mD4GJ36Npqk )


  reply	other threads:[~2014-05-04 21:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-03 20:30 GTK and tasking (GNAT) hreba
2014-05-03 21:23 ` Simon Wright
2014-05-04 18:10   ` hreba
2014-05-04 18:29     ` Simon Wright
2014-05-04 22:10   ` hreba
2014-05-04  7:31 ` Dmitry A. Kazakov
2014-05-04 18:36   ` hreba
2014-05-04 19:26     ` Dmitry A. Kazakov
2014-05-04 20:40       ` hreba
2014-05-04 21:07         ` Shark8 [this message]
2014-05-04 21:32           ` hreba
2014-05-04 21:44             ` Shark8
2014-05-04 21:57               ` hreba
2014-05-05  7:33             ` Dmitry A. Kazakov
2014-05-06 12:43               ` hreba
replies disabled

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