From: "Ratson Janiv" <janiv@013.net.il>
Subject: Tasks problem
Date: Fri, 19 Dec 2003 19:03:41 +0200
Date: 2003-12-19T19:03:41+02:00 [thread overview]
Message-ID: <3fe32ff4$1@news.barak.net.il> (raw)
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.
next reply other threads:[~2003-12-19 17:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-19 17:03 Ratson Janiv [this message]
2003-12-19 18:45 ` Tasks problem Martin Dowie
2003-12-20 1:57 ` Stephen Leake
2003-12-20 3:07 ` Steve
-- strict thread matches above, loose matches on Subject: below --
2003-12-19 17:55 Mr. J.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox