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: 103376,41967527237c1aa2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!out04a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Fun with Tasking References: <1175097196.113031.259000@r56g2000hsd.googlegroups.com> <1175100948.580216.145940@r56g2000hsd.googlegroups.com> <1175104396.231171.125360@e65g2000hsc.googlegroups.com> <1175181454.290582.90280@b75g2000hsg.googlegroups.com> From: Stephen Leake Date: Sat, 31 Mar 2007 08:08:58 -0400 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:XP7iAG9DEyiXfyuPF4RqXgFd4+Y= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 00615460e4f5b759e00d419220 Xref: g2news1.google.com comp.lang.ada:14692 Date: 2007-03-31T08:08:58-04:00 List-Id: mhamel_98@yahoo.com writes: > Anyhoo Jeff, I'll try to explain in more detail what my program is > doing and hopefully you can see where I'm going wrong. The program > has a number of packages, each handling what I call a subsystem, to be > verbose: ephemeris, residual, vector, covariance and a few others > (this sort of equates to the "exec" procedure in my sample). Each of > these systems has a number of procedures of interest, like a > differencing of quantities, a statistical analysis, etc. Now each of > these procedures of each of these subsystems can have up to 60 (and > more as we go on) objects - each one I handle as it's own task. There's no reason for each of these things to be a _task_. They should each be in separate _packages_, and be separate _objects_, but not _tasks_. Tasks are only needed for controlling timing, and then you need more than one task only when there are truly asynchronous events. Or if you want to gain speed by using parallel processors. In the system you describe, there are bunch of calculations, that can be done correctly if they are done serially. Since you talk about multiple processors, you should have one task per processor, and portion the computations among the tasks. -- -- Stephe