Re: multiprocessing & more

2011-02-14 Thread Adam Skutt
On Feb 14, 5:33 am, Andrea Crotti wrote: > Well the other possibility that I had in mind was to spawn the very > long process in an asynchronous way, but then I still have the > problem to notify the rest of the program that the simulation is over. > > Is there a way to have an asynchronous progr

Re: multiprocessing & more

2011-02-14 Thread Andrea Crotti
On Feb 14, 12:14 am, Adam Skutt wrote: > On Feb 13, 12:34 pm, Andrea Crotti wrote: > > > > > First of all, does it make sense to use multiprocessing and a short > > value as boolean to check if the simulation is over or not? > > Maybe, but without knowing exactly what you're doing it's difficult

Re: multiprocessing & more

2011-02-13 Thread Adam Skutt
On Feb 13, 12:34 pm, Andrea Crotti wrote: > > First of all, does it make sense to use multiprocessing and a short > value as boolean to check if the simulation is over or not? > Maybe, but without knowing exactly what you're doing it's difficult to say if any other approach would be superior. Pl

multiprocessing & more

2011-02-13 Thread Andrea Crotti
Hi everyone, I have a few questions about my implementation, which doesn't make me totally happy. Suppose I have a very long process, which during its executiong logs something, and the logs are is in n different files in the same directory. Now in the meanwhile I want to be able to do realtime