Concurrency in D and Active Objects

Christopher Wright dhasenan at gmail.com
Thu Apr 24 07:18:10 PDT 2008


Craig Black wrote:
>>> Also, to make D's functional subset run Concurrently doesn't D need a
>>> special runtime that parallelizes the code (which D currently doesn't 
>>> have)?
>> Yes, but that can be done. Active objects would need one, too.
>>
> 
> All that would be needed for active objects is a thread pool, which is cake. 
> Each active object could just be a task added to the pool.

You could use dependency injection to give your active object a 
threadpool. Or you could use threadPool.createNew!(MyActiveClass) or 
some such.

> -Craig
> 
> 



More information about the Digitalmars-d mailing list