How multithreading works in hardware using D ==AND== difference b/w goroutine and threads in D
Ali Çehreli
acehreli at yahoo.com
Sun Nov 25 13:26:49 PST 2012
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
More information about the Digitalmars-d
mailing list