You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Unladen Swallow, vsap...@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 :))
Thanks and best regards,
Vishal Sapre
Reid Kleckner
unread,
Feb 8, 2011, 11:13:32 PM2/8/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vishal, Unladen Swallow
On Tue, Feb 8, 2011 at 4:35 AM, Vishal <vsap...@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 ?
No, not if they're going to share memory and operate on the same Python objects. One of the linchpins of the GIL in CPython is updating refcounts, which empirically does require some form of synchronization.