This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i Initilise PrimeRacers before anyworker Thread is Started?

 
barnie stinson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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


 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the easiest way would be to have all the threads rendezvous at a CountDownLatch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic