Script execution
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user