[fluxus] Dual-core question

Dave Griffiths dave at pawfal.org
Mon Jul 9 03:12:47 PDT 2007


> dave wrote:
>> Hi Gerry,
>>
>> On Fri, 2007-07-06 at 23:54 -0300, Glauber Prado wrote:
>>
>>> Gerry Grainger wrote:
>>>
>>>> Hello again. Sorry - you're probably getting sick of the sound of me
>>>> by now, but I have a quick question: is there a way of optimising
>>>> fluxus to take advantage of dual-core systems? I'm running the most
>>>> processor-intensive scripts I can think of, and they only seem to use
>>>> one core.
>>>> Just wondering, is all.
>>>> Gerry.
>>>>
>>> Hi you are welcome, this is a question that Dave will have a better
>>> answer i didnt saw any signals about parallelization yet in fluxus,
>>> perhaps is something to think about.
>>>
>>
>> There isn't support for multithreaded processing in code yet - but one
>> of the purposes of developing the recent 'pfunc' feature (in CVS atm) is
>> to design in a way to do primitive processing in parallel. This will be
>> possible once we have suitable scheduling in the engine, and would
>> enable (for example) skinning of multiple meshes simultaneously on
>> seperate threads.
>>
>>
>> Confusingly there are 'threads' in mzscheme, but these are not real
>> hardware threads - maybe still fun to play with though for some
>> concurrent programming experiments.
>>
>>
> i guess that what gerry said is also true for me :), anyway how are
> these mzscheme threads,
> do they act like multiple threads but run in the same core unit?

Yes, they are scheduled by the interpreter internally (and thus platform
independant), rather than mapping to system threads. More info:
http://download.plt-scheme.org/doc/370/html/mzscheme/mzscheme-Z-H-7.html#node_chap_7

cheers,

dave




More information about the Fluxus mailing list