Question about Python threads

Daniel Dittmar daniel at dittmar.net
Wed Aug 21 14:46:19 EDT 2002


Mr. Neutron wrote:
> I have written threaded programs with Python and it works great. I am
> really impressed with Python so far. Now my problem is I have a Dual
> P2450. I want to write a program on it that takes advantage of both CPUs.
> My understanding of SMP is that threads are distributed on the CPUs by
> the kernel, so threads can be executing on both CPUs at once. This is
> exactly what I want to do,l as I have processes I want to run on them
> in threads. I am comfortable with using threads, it isn't the problem.
> It is my interpretation of how Python operates in threads on multiple
> CPUs at the same time that is bothering me. Or really my understanding of
> how Python threads work.

see 
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=PiDW8.48365%24Jj7.1338786%40news1.tin.it&rnum=7&prev=/groups%3Fq%3Dpython%2Bgil%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3DPiDW8.48365%2524Jj7.1338786%2540news1.tin.it%26rnum%3D7
or search google for "Python GIL" (Global Interpreter Lock)

Daniel




More information about the Python-list mailing list