Possible suggestion for removing the GIL

Bryan Olson fakeaddress at nowhere.org
Sat Sep 15 00:55:55 EDT 2007


Prateek wrote:
[...]
> Mainly it revolves around dedicating one core for executing
> synchronized code and doing context switches instead of acquiring/
> releasing locks.
> 
> http://www.brainwavelive.com/blog/index.php?/archives/12-Suggestion-for-removing-the-Python-Global-Interpreter-Lock.html

Context switches are generally more expensive than acquiring
and release locks. Most systems' run-queues are protected by
locks. The context switches at issue all involve the
dedicated core, so I do not see any parallelism advantage.


-- 
--Bryan



More information about the Python-list mailing list