does anyone know a parallel aplication/benchmark in java that simulates checkpointing? i mean, in my cluster there are running parallel processes in diferent nodes and i want to make them concurrently do some specific action (to have a checkpoint for exampl开发者_如何学编程e). this synchronization how is it achieved?
thanks
If the concurrent threads run in the same VM, just use a CyclicBarrier or a Latch. If they run in different VMs, you can use Terracotta to share a Latch or CyclicBarrier across JVMs, on which all your servers can then synchronize. Works great, but it needs some work.
You can try hazelcast which offer this functionality but has a lighter touch on the rest of your system than terracotta (more than you need just for this)
精彩评论