Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26313
| References | <CAF_E5JY5FgEJub7tNNzZEj0tri8Z7oPZUSLOLtD+5f0t7Yv+Yg@mail.gmail.com> |
|---|---|
| Date | 2012-07-31 15:12 +0100 |
| Subject | Re: Pass data to a subprocess |
| From | andrea crotti <andrea.crotti.0@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2783.1343743945.4697.python-list@python.org> (permalink) |
> > > def procs(): > mp = MyProcess() > # with the join we are actually waiting for the end of the running time > mp.add([1,2,3]) > mp.start() > mp.add([2,3,4]) > mp.join() > print(mp) > I think I got it now, if I already just mix the start before another add, inside the Process.run it won't see the new data that has been added after the start. So this way is perfectly safe only until the process is launched, if it's running I need to use some multiprocess-aware data structure, is that correct?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Pass data to a subprocess andrea crotti <andrea.crotti.0@gmail.com> - 2012-07-31 15:12 +0100
csiph-web