[BangPypers] Ideas for Python concurrency...

vikas ruhil vikasruhil06 at gmail.com
Tue Feb 8 09:57:54 CET 2011


use this type  Threading :
•Thread(target=do_work,args=(work_queue,))
–Multiprocessing:
•Process(target=do_work,args=(work_queue,))

On Tue, Feb 8, 2011 at 1:54 PM, Vishal <vsapre80 at gmail.com> wrote:

> 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 :))
>
> Thanks and best regards,
> Vishal Sapre
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list