3 ms·
I am not sure how to read your question, go with goroutines does nothing that you can't do in C with p-threads because you could probably write something that w
by Djehngo 14y ago
I am not sure how to read your question, go with goroutines does nothing that you can't do in C with p-threads because you could probably write something that would take go and output C.
What go does is make some things easier, goroutines are multiplexed onto OS threads in a way that means you don't need to worry about pooling or scheduling. Channels provide an easy way of sending and receiving data in either a blocking or non-blocking manner
In go things are generally passed by value as a default, if you want to pass by reference you just pass a pointer.