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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bfa293c8cae77433,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-19 09:07:37 PST From: "Ratson Janiv" Newsgroups: comp.lang.ada Subject: Tasks problem Date: Fri, 19 Dec 2003 19:03:41 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 82-166-194-25.barak.net.il X-Original-NNTP-Posting-Host: 82-166-194-25.barak.net.il Message-ID: <3fe32ff4$1@news.barak.net.il> X-Trace: news.barak.net.il 1071853556 82-166-194-25.barak.net.il (19 Dec 2003 19:05:56 +0300) X-Original-Trace: 19 Dec 2003 19:05:56 +0300, 82-166-194-25.barak.net.il Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!news.splitrock.net!nntp02.mcleodusa.net!dimaggio.newszilla.com!sinatra.newszilla.com!news.barak.net.il!not-for-mail Xref: archiver1.google.com comp.lang.ada:3568 Date: 2003-12-19T19:03:41+02: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.