[Bf-committers] Opteron/Blender

Gregor Mückl GregorMueckl at gmx.de
Tue Feb 8 23:34:10 CET 2005


On Tuesday 08 February 2005 02:06, Campbell J Barton wrote:
> Thanks Matt for your exp, Im realy interested in 64 bit linux, but good to
> here that 32 bit as fast too (If I get one it wont be usless)
> Id also like a dual CPU, take a crack at multithreaded python while Im at
> it :)
>
> HAs anybody done multithreaded python? I heared blender/python dosent
> support threading, but Id be happy to thread with my own data and leav the
> actual blender to be accsessed by 1 thread.
> (Is this the correct termanology???, never done threading so Im just
> guessing from what I hear)
> - Cam

Multithreading isn't really possible with Python. The Python docs clearly 
state that the interpreter is not reentrant and therefore a multithreaded app 
must actually care about locking interpreter entry properly. So multithreaded 
Python scripts are not possible with the "normal" C Python interpreter.

There is another Python interpreter written in Java, which I'm using for 
Moonlight, my own modelling/animation project. This one should be able to run 
multiple threads concurrently, but hasn't quite kept pace with implementing 
new language features, as I was to find out today.

Regards,
Gregor


More information about the Bf-committers mailing list