Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #55519

Re: Idea for removing the GIL...

Subject Re: Idea for removing the GIL...
From Adam Tauno Williams <awilliam@whitemice.org>
References <7d3a67ba-b5ff-4b11-95b5-71f041dfc63a@o7g2000prn.googlegroups.com>
Date 2011-02-08 05:05 -0500
Newsgroups comp.lang.python
Message-ID <mailman.0.1297159531.1633.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, 2011-02-08 at 01:39 -0800, Vishal wrote: 
> 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 ?
> 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 :))

Yes, it is possible, and done.  See the multiprocessing module.  It
works very well.
<http://docs.python.org/library/multiprocessing.html>

It isn't exactly the same as threads, but provides many similar
constructs.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Idea for removing the GIL... Adam Tauno Williams <awilliam@whitemice.org> - 2011-02-08 05:05 -0500
  Re: Idea for removing the GIL... Vishal <vsapre80@gmail.com> - 2011-02-08 04:34 -0800
    Re: Idea for removing the GIL... Stefan Behnel <stefan_ml@behnel.de> - 2011-02-08 18:05 +0100
    Re: Idea for removing the GIL... Roy Smith <roy@panix.com> - 2011-02-08 11:52 -0500
    Re: Idea for removing the GIL... Jean-Paul Calderone <calderone.jeanpaul@gmail.com> - 2011-02-08 04:53 -0800

csiph-web