推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
aias
V2EX  ›  Python

如何结束掉进程?

  •  
  •   aias · May 20, 2016 · 3995 views
    This topic created in 3820 days ago, the information mentioned may be changed or developed.

    比如

    p1 = multiprocessing.Process(target = time_out, args = ())
    

    搜了一下似乎没有相应的方法...各位有什么好的方法吗?

    5 replies  •  2016-05-20 21:34:14 +08:00
    b1eberg0n
    b1eberg0n
    May 20, 2016
    1
    p1.terminate()
    aias
    aias
    OP
    May 20, 2016
    2
    @b1eberg0n 谢谢你的回复。好像并不行..
    EchoUtopia
    EchoUtopia
    May 20, 2016
    3
    signal 呢
    ZOwl
    ZOwl
    May 20, 2016❤️1
    4
    注册 signal ,收到后 kill 后, p1.terminate(),再 p1.join()更新状态
    SlipStupig
    SlipStupig
    May 20, 2016
    5
    1. p1.terminate
    2.signal
    3. kill -9 pid
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2995 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 152ms · UTC 11:44 · PVG 19:44 · LAX 03:44 · JFK 06:44
    ♥ Do have faith in what you're doing.