Script execution
This commit is contained in:
@@ -2,15 +2,15 @@ import time
|
||||
print ("ENTER")
|
||||
|
||||
def foo(name):
|
||||
time.sleep(5.0)
|
||||
print ("Enter")
|
||||
time.sleep(5.0)
|
||||
print('OK -> ', name)
|
||||
with open('/Users/gobbo_a/readme.txt', 'w') as f:
|
||||
f.write('hello' )
|
||||
print('hello', name)
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
|
||||
p = ctx.Process(target=foo, args=('bob',))
|
||||
p = mp_fork.Process(target=f, args=('bob',))
|
||||
#p = mp_spawn.Process(target=f, args=('bob',))
|
||||
|
||||
Reference in New Issue
Block a user