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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fx11.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:32.0) Gecko/20100101 Thunderbird/32.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GTK and tasking (GNAT) References: <1db3ntu987ypk$.6zu9ghm9azm0.dlg@40tude.net> <14ydfwlh6wfe4$.1rv26jm958z.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Sun, 04 May 2014 21:07:49 UTC Organization: TeraNews.com Date: Sun, 04 May 2014 15:07:48 -0600 X-Received-Bytes: 1732 X-Received-Body-CRC: 3218846990 X-Original-Bytes: 1751 Xref: number.nntp.dca.giganews.com comp.lang.ada:186222 Date: 2014-05-04T15:07:48-06:00 List-Id: 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 )