-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime.Gosched usage is likely to lead readers astray #21
Comments
this one right?
The thing is, this chapter is adapted from the book by @astaxie. I will make some modifications to the description. |
@raggi I now have time for looking into this, do you suggest any alternate mechanism that is simpler for new comers to understand? |
It's a fair question. The thing is that since GOMAXPROCS is now defaulted to a higher value and most users will not be on single core systems, I'm not sure you'll need this in order to demonstrate parallelism, it just won't be even. In future versions of Go, this may not be even anyway. Maybe you'll want to set GOMAXPROCS to 4 just to be certain, but that's also mostly unnecessary. |
Okay, so shall I remove this example and put in a basic one if it isn't present
And remove the example you are talking about? |
While this might well be the shortest way you found to demonstrate the output you wanted, training users toward this function stands a good chance of them trying to use it to solve early problems it is not suitable for.
The text was updated successfully, but these errors were encountered: