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,FREEMAIL_FROM, T_HK_NAME_FM_MR_MRS autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bfa293c8cae77433 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-19 09:55:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: ratsonjaniv@hotmail.com (Mr. J.) Newsgroups: comp.lang.ada Subject: Tasks problem Date: 19 Dec 2003 09:55:52 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 82.166.194.25 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1071856552 7751 127.0.0.1 (19 Dec 2003 17:55:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 19 Dec 2003 17:55:52 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3576 Date: 2003-12-19T09:55:52-08:00 List-Id: Hi, I have a task T_Check that checks if a number is a prime one. I have a task T_Manager that manages the checks. In T_Manager I have an array of T_Check(1..N). Now, lets say I want the T_Manager task to check the numbers 1..100 if they are prime. I have only 8 T_Checks tasks (N=6). How do I manage the tasks allocations ? I thought about T_Manager getting a notification from T_Check when it finishes checking, and when T_Manager is notified it shold recall the Check entry in the T_CHeck task that notified it. The problem is that I dont know how to know which task (T_Check) amongst the Nth tasks has notified me. Is there any solution in ADA? Maybe my solution is not so good (Hellllllloooooooooo?), what is the solution U may suggest me ? Thanks a lot, Janiv Ratson.