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,10d1a90a699d6cfc X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada tasking question References: <20070418201307.18a85fd9@cube.tz.axivion.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1176927141 12.201.97.213 (Wed, 18 Apr 2007 20:12:21 GMT) NNTP-Posting-Date: Wed, 18 Apr 2007 20:12:21 GMT Organization: AT&T ASP.att.net Date: Wed, 18 Apr 2007 20:12:21 GMT Xref: g2news1.google.com comp.lang.ada:15103 Date: 2007-04-18T20:12:21+00:00 List-Id: Randy Brukardt wrote: > > I'd suggest organizing the tasks as workers and the buckets as jobs. The > idea is that each task is a loop that just gets a job (a bucket in your > case), processes it, sends the result, and gets another job, etc. You just > need a protected data structure to serve the jobs, and an array of worker > tasks, and then you can easy vary N to any value you want to try. In this case, I'd say all that's needed is a protected object to supply the index into the Buckets array of the next bucket needing processing. -- Jeff Carter "Blessed is just about anyone with a vested interest in the status quo." Monty Python's Life of Brian 73