On Wed, Jul 17, 2019 at 11:24 AM <jessie.gocot...@rococoglobaltech.com> wrote:
>
> Can somebody explain this code?
> How is the cpu doing? better than for{} ...

Who claims it's doing better than `for {}`? IDK, I haven't tested, but
I guess it should perform the same bad way.

> ... and select {} in CPU usage?

Now that's a different story. Using `select {}` should burn 0% CPU in
the goroutine that executed the statement.

PS: Please post source code as black text on white, and, if possible,
as plain text only.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-WQ6tuo01fDNdEm2T0ba_5i7ttqE4VX%2BhgoONrZRo07uA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to