[gambit-list] Native threading with C++?

Marc Feeley feeley at iro.umontreal.ca
Fri Apr 20 23:50:11 EDT 2012


On 2012-04-20, at 10:01 PM, Raffael Cavallaro wrote:

> On Apr 20, 2012, at 7:48 PM, Marc Feeley wrote:
> 
>> The overhead seems to be acceptably low, but for some programs accessing global variables frequently it could be noticeable
> 
> Just in case you're taking an informal poll, I think that this relatively small overhead would be more than compensated by the gains to be had on multicore processors which are now nearly ubiquitous, even on mobile devices.

Multiple global environments are useful for creating separate instances of the Gambit VM in the same OS process which do not share the global variables.  This might be useful in a "shared nothing" multithreading model (like Erlang/Termite).  But for a shared-memory model (like Multilisp) a shared global environment would be appropriate, with the advantage of no overhead for accessing global variables.

Marc




More information about the Gambit-list mailing list