Python Forum
When will the GIL be removed?
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When will the GIL be removed?
#1
Hello again,

this is a repost of the former "When will the GIL be removed?" thread, which has been lost by the hack attack.

There have been a number very useful links to videos of the Pycon Conference 2016 and especially from the Gilectomy project guy. I hope, they will be posted again, that future readers of this thread will have the same chances to follow the discussion. I got the following out of this videos:
1. The general interpreter lock (GIL) locks all (especially internal) variables for others threads.
2. This makes sequential python code run fast.
3. At the same time it inhibits threads to be (naturally) processed in parallel on the CPU, which means, threaded python code only runs on one CPU core, the other cores remain unused. (Recent CPUs have 4 to 8 cores).
4. The removal of the GIL (gilectomy) is a big deal, because the straight forward mulitiple interpreter locks approach following the CPython garbage collection framework of reference counting is slow. Thus, most probably garbage collection/ reference counting also must be redesigned in one breath.
(Please correct me, where I am wrong).

I am a numerical python programmer and I need parallel execution of my programs. So, how are you dealing with the current GIL situation, when you need parallel python execution, so that you won't need to reprogram all your programs in python 4.0, when the GIL is possibly removed and the dirty GIL workaround by the package multiprocessing is dispensible. AFAIK calling a process instead of calling a thread makes up a lot of additional processing ballast.

Consuli

P.S.:

In the former thread, there has been a very nice code example using the package concurrent.futures or similar, posted by one of the mods. Would be nice to be linked again.
Reply


Messages In This Thread
When will the GIL be removed? - by consuli - Nov-27-2016, 11:27 AM
RE: When will the GIL be removed? - by wavic - Nov-27-2016, 02:07 PM
RE: When will the GIL be removed? - by consuli - Nov-27-2016, 07:51 PM
RE: When will the GIL be removed? - by micseydel - Nov-27-2016, 10:00 PM
RE: When will the GIL be removed? - by consuli - Nov-28-2016, 06:47 PM
RE: When will the GIL be removed? - by wavic - Nov-28-2016, 08:54 AM
RE: When will the GIL be removed? - by micseydel - Nov-28-2016, 07:35 PM
RE: When will the GIL be removed? - by nilamo - Nov-28-2016, 08:01 PM
RE: When will the GIL be removed? - by pydsigner - Nov-29-2016, 04:58 PM
RE: When will the GIL be removed? - by snippsat - Nov-29-2016, 05:57 PM
RE: When will the GIL be removed? - by consuli - Nov-29-2016, 07:00 PM
RE: When will the GIL be removed? - by consuli - Dec-04-2016, 06:15 PM
RE: When will the GIL be removed? - by snippsat - Dec-04-2016, 06:33 PM
RE: When will the GIL be removed? - by snippsat - Dec-04-2016, 09:25 PM
RE: When will the GIL be removed? - by consuli - Dec-05-2016, 01:53 PM
RE: When will the GIL be removed? - by consuli - Dec-06-2016, 07:29 PM
RE: When will the GIL be removed? - by micseydel - Jan-06-2017, 12:22 AM
RE: When will the GIL be removed? - by nilamo - Jan-06-2017, 04:22 PM
RE: When will the GIL be removed? - by micseydel - Jan-06-2017, 06:32 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020