Tasks problem

From: Ratson Janiv (janiv_at_013.net.il)
Date: 12/19/03


Date: Fri, 19 Dec 2003 19:03:41 +0200

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.



Relevant Pages

  • Tasks problem
    ... I thought about T_Manager getting a notification from T_Check when it ... Nth tasks has notified me. ... Is there any solution in ADA? ... Janiv Ratson. ...
    (comp.lang.ada)
  • Re: WM_LBUTTONDOWN and SetWindowPos
    ... "Janiv Ratson" wrote in message ... > The top most control is either a Button or a Static (with SS_NOTIFY, ... > if it is not overlapped, than I get the notification). ...
    (microsoft.public.vc.mfc.docview)
  • Re: WM_LBUTTONDOWN and SetWindowPos
    ... "Janiv Ratson" wrote in message ... > The top most control is either a Button or a Static (with SS_NOTIFY, ... > if it is not overlapped, than I get the notification). ...
    (microsoft.public.vc.mfc)