标签:进程 tpi coding create child created creat for ted
# -*- coding: utf-8 -*-
import os
pid=os.fork()
print (‘process (%s)start ...‘ %os.getpid())
if pid==0:
print(‘I am child process (%s) and my parent is %s.‘ % (os.getpid(), os.getppid()))
else:
print(‘I (%s) just created a child process (%s).‘ % (os.getpid(), pid))
标签:进程 tpi coding create child created creat for ted
原文地址:http://www.cnblogs.com/smartwen666/p/7911357.html