【问题标题】:multithredin using dmtcp in python在 python 中使用 dmtcp 的多线程
【发布时间】:2014-07-30 09:55:17
【问题描述】:

我喜欢从 python 代码中控制检查点过程。 DMTCP 是一个分布式系统中的检查点框架。它允许检查点 python [rograms.但我希望使用 python 程序检查 python 程序。是否有任何用于 dmtcp 或任何其他检查点库的 python API。

【问题讨论】:

    标签: python distributed-computing checkpoint


    【解决方案1】:

    DMTCP 提供了一个简单的 Python 模块,您可以将其导入 Python 程序。该模块允许您从 python 程序中访问 DMTCP 功能。例如,您可以执行以下操作:

    $ dmtcp_launch python
    
    import dmtcp    
    ...
    dmtcp.checkpoint()
    ...
    dmtcp.restart()
    

    有关更多信息,请在此处查看 python 模块和示例程序: https://github.com/dmtcp/dmtcp/tree/master/contrib/python

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多