RSS feed [root] /languages /weblog




login:

password:

title search:




 


Sun Nov 12 00:53:31 HKT 2017

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


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