comp.lang.ada
 help / color / mirror / Atom feed
From: hreba <hreba@terra.com.br>
Subject: Re: GTK and tasking (GNAT)
Date: Sun, 04 May 2014 18:32:45 -0300
Date: 2014-05-04T18:32:45-03:00	[thread overview]
Message-ID: <bsnpvuFcplU1@mid.individual.net> (raw)
In-Reply-To: <F_x9v.554097$Eh6.322463@fx11.iad>

On 05/04/2014 06:07 PM, Shark8 wrote:
> 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 )

I am talking about calculations that can be broken down, as in my 
example at the beginning of this thread: I count from 1 to 10, update a 
text box and call delay at each iteration, but the display changes only 
after the termination of the loop.
-- 
Frank Hrebabetzky		+55 / 48 / 3235 1106
Florianopolis, Brazil

  reply	other threads:[~2014-05-04 21:32 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
2014-05-04 21:32           ` hreba [this message]
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