comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Fun with Tasking
Date: Sat, 31 Mar 2007 08:08:58 -0400
Date: 2007-03-31T08:08:58-04:00	[thread overview]
Message-ID: <uabxtboo5.fsf@stephe-leake.org> (raw)
In-Reply-To: 1175181454.290582.90280@b75g2000hsg.googlegroups.com

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



      parent reply	other threads:[~2007-03-31 12:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-28 15:53 Fun with Tasking mhamel_98
2007-03-28 16:55 ` Adam Beneschan
2007-03-28 17:53   ` mhamel_98
2007-03-28 20:06     ` Ed Falis
2007-03-28 22:17     ` Randy Brukardt
2007-03-29  4:59     ` Jeffrey R. Carter
2007-03-29 15:17       ` mhamel_98
2007-03-30  4:06         ` Steve
2007-03-30  5:46         ` Jeffrey R. Carter
2007-03-31 12:08         ` Stephen Leake [this message]
replies disabled

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