No print output from child multiprocessing.Process unless the program crashes

前端 未结 1 1565
半阙折子戏
半阙折子戏 2020-12-30 03:08

I am having trouble with the Python multiprocessing module. I am using the Process class to spawn a new process in order to utilize my second core. This second

1条回答
  •  再見小時候
    2020-12-30 03:47

    Have you tried flushing stdout?

    import sys
    print "foo"
    sys.stdout.flush()
    

    0 讨论(0)
提交回复
热议问题