comp.lang.ada
 help / color / mirror / Atom feed
* parallel computing of prime numbers
@ 2003-12-28 13:31 meh
  2003-12-28 17:52 ` Robert I. Eachus
  0 siblings, 1 reply; 2+ messages in thread
From: meh @ 2003-12-28 13:31 UTC (permalink / raw)


I'd like to compute parallely primes with variable amount of tasks. I 
made a task with an entry to compute a single number's primeness and 
then looped through all tasks and assigned each task a new number to 
work on.
My problem is that the assigning command waits until the prime 
calculation ends, I want it to assign the task a number to work on and 
then CONTINUE IMMEDIATELY assigning other numbers to other tasks.
I thought of making an array of semaphore and input variables, and then 
to use them to assign numbers to tasks (I'll intialize each task with 
the relevant semaphore), but it seems very clumsy way to do things.
Pray, how can I do that in a more elegant way?




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-28 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-28 13:31 parallel computing of prime numbers meh
2003-12-28 17:52 ` Robert I. Eachus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox