Script execution

This commit is contained in:
2022-08-23 15:13:14 +02:00
parent e967bafe50
commit 1bc5b05ed5

View File

@@ -1,7 +1,6 @@
import multiprocessing as mp
#mp.set_start_method('fork')
def f(name):
print ("Enter")
with open('/Users/gobbo_a/readme.txt', 'w') as f:
f.write('hello' )
print('hello', name)
@@ -10,4 +9,6 @@ def f(name):
p = mp.Process(target=f, args=('bob',))
p.start()
p.join()
print ("STARTED")
p.join()
print ("JOINED -> ", p.exitcode)