The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
author : ysoftman
encoding : utf-8
title : 병렬화(parallelization) 테스트
[desc]
golang 의 go routine(고루틴) 이라고 하는 경량 쓰레드를 사용한다.
고루틴은 기본적으로 concurrency(동시성)하게 동작한다.
고루틴를 이용한 동시성 처리 예시 https://gobyexample.com/goroutines
만약 병렬처리(실제 다수의 cpu 를 사용해서 병렬 처리하는 경우)하려면
프로그램에서 사용할 수 있는 cpu 개수를 GOMAXPROCS 로 늘리면된다.
기본적으로 GOMAXPROCS 를 사용하지 않더라도 기본적으로
현재 머신의 cpu 개수로 설정되어 있다.