Skip to content
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: I create more than CPU logical core number goroutine,and the demo is bomb #23235

Closed
MrXionGe opened this issue Dec 24, 2017 · 1 comment

Comments

@MrXionGe
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go1.9.2 windows/amd64

Does this issue reproduce with the latest release?

En……I do not know if there is any problem with the previous version

What operating system and processor architecture are you using (go env)?

Windos10 amd64

What did you do?

Well,I make a Bubble Sort Demo to test my CPU performance.
You can see the code inside the link,at line 24 and 27.
My Cpu Num are 4.
So,if I create 4 or over 4 "doBenchmar()" at line 24.This demo will always sleep at line 27(debug will bomb at line 27 too).If I add a print after line 27,it will not output.
If I create 3 or 2 "doBenchmar()" , There is not any problem.(Less than CPU logical core number)

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

https://play.golang.org/p/aFtkiUOexgz

What did you expect to see?

I want to know where is the problem.
The best result is a problem with my code.

What did you see instead?

Oh,I saw my demo is bomb

@davecheney
Copy link
Contributor

I’m sorry but this bug report is not valid as it contains a data race. Please consult the following links for more information.

Unlike many projects on GitHub, the Go project does not use its bug tracker for general discussion or asking questions. We only use our bug tracker for tracking bugs and tracking proposals going through the Proposal Process.

Please see https://golang.org/wiki/Questions for good places to ask questions.

@mikioh mikioh changed the title I create more than CPU logical core number goroutine,and the demo is bomb runtime: I create more than CPU logical core number goroutine,and the demo is bomb Jan 5, 2018
@golang golang locked and limited conversation to collaborators Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants