Script execution
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import time
|
||||
print ("ENTER")
|
||||
def f(name):
|
||||
|
||||
def foo(name):
|
||||
time.sleep(5.0)
|
||||
print ("Enter")
|
||||
with open('/Users/gobbo_a/readme.txt', 'w') as f:
|
||||
@@ -9,11 +10,10 @@ def f(name):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
ctx = mp.get_context('spawn')
|
||||
q = ctx.Queue()
|
||||
p = ctx.Process(target=f, args=('bob',))
|
||||
|
||||
#p = mp.Process(target=f, args=('bob',))
|
||||
p = ctx.Process(target=foo, args=('bob',))
|
||||
p = mp_fork.Process(target=f, args=('bob',))
|
||||
#p = mp_spawn.Process(target=f, args=('bob',))
|
||||
p.start()
|
||||
print ("STARTED")
|
||||
p.join()
|
||||
|
||||
Reference in New Issue
Block a user