Tasks problem
From: Ratson Janiv (janiv_at_013.net.il)
Date: 12/19/03
- Next message: Georg Bauhaus: "Re: [announcement] SYSAPI and SYSSVC for Windows"
- Previous message: tmoran_at_acm.org: "Re: Other Ada Standards (was Re: SIGada Conference)"
- Next in thread: Martin Dowie: "Re: Tasks problem"
- Reply: Martin Dowie: "Re: Tasks problem"
- Reply: Stephen Leake: "Re: Tasks problem"
- Reply: Steve: "Re: Tasks problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Georg Bauhaus: "Re: [announcement] SYSAPI and SYSSVC for Windows"
- Previous message: tmoran_at_acm.org: "Re: Other Ada Standards (was Re: SIGada Conference)"
- Next in thread: Martin Dowie: "Re: Tasks problem"
- Reply: Martin Dowie: "Re: Tasks problem"
- Reply: Stephen Leake: "Re: Tasks problem"
- Reply: Steve: "Re: Tasks problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|