RSS feed [root] /languages /weblog




login:

password:

title search:




 


Thu Jan 04 14:44:30 HKT 2018

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/


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