Dashboard > Terracotta Forge Labs > Home > Pod Racing - How to synchronize threads across multiple JVMs
  Terracotta Forge Labs Log In   View a printable version of the current page.  
  Pod Racing - How to synchronize threads across multiple JVMs
Added by Hung Hung, last edited by Hung Hung on Feb 07, 2008
Labels: 
(None)

Sometimes, you want to start the job in multiple JVMs only when all the VM has started. This scenario often comes up with multiplayer games. Let's take a pod racing game for example. The players need to start at the same time and each game server handles 1 player (for simplicity's sake)

Here the whole blog of how to do it http://unserializableone.blogspot.com/2008/02/pod-racing-how-to-synchronize-threads.html

You can download the source from the attachment. Run "mvn tc:run" to start.

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators