[Python.NET] About use DotNet threading lib

2015-03-04 Thread Longhui Xiong
Hi there, I am using python for DotNet, I have to say, it is great. As we know, cpython has the Global Interpreter Lock (GIL) on multi-threading. So it can not use multi-core. So I have one question, if I import CLR and use System.Threading on python for .net, but don't use cpython threading, M

Re: [Python.NET] About use DotNet threading lib

2015-03-04 Thread Jeffrey Bush
You seem to be slightly misinformed about the cPython GIL. While it is true that it prevents two Python statements from being interpreted at the same time, many "long-running" functions automatically release the GIL while they are being executed. For example, when reading and writing a file the GIL