java中的并行应用程序检查点

发布于 2024-10-08 03:10:46 字数 110 浏览 1 评论 0原文

有谁知道java中模拟检查点的并行应用程序/基准吗?我的意思是,在我的集群中,不同节点中正在运行并行进程,我想让它们同时执行一些特定操作(例如,有一个检查点)。这个同步是怎么实现的呢?

谢谢

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 example). this synchronization how is it achieved?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

維他命╮ 2024-10-15 03:10:46

如果并发线程在同一个虚拟机中运行,则只需使用 CyclicBarrier 或 Latch。如果它们在不同的 VM 中运行,您可以使用 Terracotta 在 JVM 之间共享 Latch 或 CyclicBarrier,然后所有服务器都可以在其上同步。
效果很好,但需要一些工作。

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.

日暮斜阳 2024-10-15 03:10:46

您可以尝试 hazelcast,它提供此功能,但与 terracotta 相比,对系统其余部分的影响更轻(超出您仅需要的功能)

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文