[BangPypers] Ideas for Python concurrency...
Anand Chitipothu
anandology at gmail.com
Tue Feb 8 09:32:30 CET 2011
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
More information about the BangPypers
mailing list