Forums Register Login

How can i Initilise PrimeRacers before anyworker Thread is Started?

+Pie Number of slices to send: Send
Hi All,

i would like to know how can i initialise all the primeRacers before any worker thread is started. In the following code:


+Pie Number of slices to send: Send
I think the easiest way would be to have all the threads rendezvous at a CountDownLatch.
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1139 times.
Similar Threads
InterruptedException
Threads and DB Access
Issue with executor thread pool
Sieve of Eratosthenes
Access HashMap by multiple threads concurrently
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:40:36.