Tuesday, March 11, 2014

Goroutines for the Multi-threaders

Was recently in a conversation with C++ experts, who haven't meet Go yet; and found out I do not know how to share the wonders of goroutines over threads. I thought it will generate more cents in this blog, so here you go... =)

Now, what better ways do you know on executing asynchronous code if you only have a single-threaded application? 

Example, some really big-free-outstanding service like google's appengine only allows you to run single-threaded. But in many cases (and very likely) in optimizing a web application, asynchronous execution of code will help a lot... a very lots and much of lots and lots of savings... =)

It seems Go was asked frequently about it, =).
http://golang.org/doc/faq#goroutines