goroutine with loop to use CPU suffciently