[Python-3000] Kill GIL?
solipsis at pitrou.net
Sun Sep 17 16:51:12 CEST 2006
Le dimanche 17 septembre 2006 à 23:16 +1000, Nick Coghlan a écrit :
> Brett Cannon's sandboxing work (which aims to provide first-class support for
> multiple interpreters in the same process for security reasons) also seems
> like a potentially fruitful approach to distributing processing to multiple cores:
> - use threads to perform blocking I/O in parallel
OTOH, the Twisted approach avoids all the delicate synchronization
issues that arise when using threads to perform concurrent IO tasks.
Also, IO is by definition not CPU-intensive, so there is no point in
distributing IO to multiple cores (and it could even cause a small
decrease in performance because of inter-CPU communication overhead).
More information about the Python-3000