A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-October/093217.html below:

[Python-Dev] [Python-ideas] Remove GIL with CAS instructions?

[Python-Dev] [Python-ideas] Remove GIL with CAS instructions? [Python-Dev] [Python-ideas] Remove GIL with CAS instructions?Sturla Molden sturla at molden.no
Thu Oct 22 23:42:32 CEST 2009
Phillip Sitbon skrev:
> Some of this is more low-level. I did see higher performance when
> using non-Event objects, although I have not had time to follow up and
> do a deeper analysis. The GIL flashing "problem" with critical
> sections can very likely be rectified with a call to Sleep(0) or
> YieldProcessor() for those who are worried about it. 
For those who don't know what Sleep(0) on Windows does: It returns the 
reminder of the current time-slice back to the system is a thread with 
equal or higher-priority is ready to run. Otherwise it does nothing.

GIL flashing is a serious issue if it happens often; with the current 
event-based GIL on Windows, it never happens (61 cases of GIL flash in 
100,000 periodic checks is as good as never).

S.M.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4