Re: [go-nuts] A goroutine question

2021-02-19 Thread Yuwen Dai
between the two programs yourself by > profiling it, it will show the overhead of context switch, goroutine > initialization, GC and so forth. > > Heres some good resources: > https://blog.golang.org/pprof > https://youtu.be/nok0aYiGiYA > > On Fri, 19 Feb 2021, 11:46 Yu

[go-nuts] A goroutine question

2021-02-19 Thread Yuwen Dai
Hi experts, I'm a newbie to golang. One of my first ideas to use goroutine is to write a matrix multiplying programme: C = A*B.I though the calculating of every element of C: c[i][j] = row i of A * column j of B could be run by a goroutine. This is the skeleton of the code: t1 :