On 11/25/2012 11:29 AM, Sparsh Mittal wrote:

> What is the difference between working of
> goroutine in Go and threads spawned in D. Both work concurrently with
> the caller (parent).

As far as I know, goroutines are coroutines with a more appropriate name for the language. :) There is not necessarily a thread involved but I think the implementation does multiplex them on threads. (?)

I think the closest thing in D is a Fiber:

  http://dlang.org/phobos/core_thread.html#Fiber

Ali

Reply via email to