[BangPypers] Ideas for Python concurrency...

Vishal vsapre80 at gmail.com
Tue Feb 8 09:37:11 CET 2011


On Tue, Feb 8, 2011 at 2:02 PM, Anand Chitipothu <anandology at gmail.com>wrote:

> 2011/2/8 Vishal <vsapre80 at gmail.com>:
> > Hello,
> >
> > This might sound crazy..and dont know if its even possible, but...
> >
> > Is it possible that the Python process, creates copies of the interpreter
> > for each thread that is launched, and some how the thread is bound to its
> > own interpreter ?
> >
> > This will increase the python process size...for sure, however data
> sharing
> > will remain just like it is in threads.
> >
> > and it "may" also allow the two threads to run in parallel, assuming the
> > processors of today can send independent instructions from the same
> process
> > to multiple cores?
> >
> > Comments, suggestions, brush offs  are welcome :))
>
> Why not use multiprocessing?
>
> http://docs.python.org/library/multiprocessing.html
>
> Anand
>

Mutliprocessing means, data copying, talking to each other through PIPES,
also it has its issues with running on Windows (all function calls should be
pickelable)

Threads seems pretty stable on most platforms where Python runs.

Vishal


More information about the BangPypers mailing list