Could C extension for multithreaded Python boost performance?
<p>I have heard of Python's GIL problem, which said that there can only be one Python thread execute the Python bytecode at one time in a multicore machine. So multithreaded Python program is not a good idea.</p>

<p>I am wondering if I can write a C extension which creates a pthread that potentially boot the performance of my program. I mean I create a thread in my C extension and hope it runs parallel with the Python main thread.</p>

<p>My assumption is that the Python main thread will do things more with IO; and the pthread in my C extension will spend most of the time do the computation. The Python main thread communicate with the thread in C extension using a queue (like a producer consumer model). </p>

<p><strong>Is there any difference between multithread with Python and C extension?</strong></p>
