RSS feed [root] /languages /weblog




login:

password:

title search:




 


Sun May 12 15:02:51 GMT 2024

go



How go utilizing-multi-core

package main

import "runtime"

func calc()
{
sum := 0;
for i := 0; ; i++ {
sum += i;
}
}

func main()
{
runtime.GOMAXPROCS(4);
go calc();
go calc();
go calc();
go calc();
go calc();
go calc();
go calc();
calc();
}


http://kzk9.net[..]g-multi-core-in-go-programming-language/

A presentation - http://wh3rd.net/practical-go/ http://talks.golang.org/2012/splash.slide#1

Some good thing about go - http://abdullin.com[..]3/12/16/studying-go-language-golang.html

About memory management and thread - http://www.infoq.com/interviews/hudson-go-gc

Several good tools - https://medium.com[..]ous-integration-like-a-boss-941a3a9ad0b6

A few practical comments of using go in production -
https://www.commandercoriander.net/blog/2017/12/31/writing-go/

What We Got Right, What We Got Wrong - https://commandcenter.blogspot.com[..]what-we-got-right-what-we-got-wrong.html https://www.infoq.cn/article/aWpoZIAWM1D8Z6cLzA7l


(google search) (amazon search)
second
download zip of files only