Script execution

This commit is contained in:
2022-08-24 14:20:58 +02:00
parent 576195eb07
commit 38b2ca2a04

View File

@@ -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',))