|
请问start()进程没反应是怎么回事啊
import multiprocessing
import time
def worker(interval):
n = 3
while n > 0:
print("1111".format(time.ctime()))
time.sleep(interval)
n -= 1
if __name__ == "__main__":
p1 = multiprocessing.Process(target = worker, args = (3,))
p1.start()
print "4444444444"
就输出了4444444444 但应该还有P1进程里的3行字符串的
|
|