This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i Initilise PrimeRacers before anyworker Thread is Started?  RSS feed

 
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
Boost this thread!