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

fmt.Println() not working in child threads #3

Open
FrankDMartinez opened this issue Apr 22, 2021 · 1 comment
Open

fmt.Println() not working in child threads #3

FrankDMartinez opened this issue Apr 22, 2021 · 1 comment

Comments

@FrankDMartinez
Copy link

Hi, I hope you are having a great new year so far.

Given a command-line application, I find, if child thread calls fmt.Println(someText), that someText is not sent to standard out. Is this expected behavior and, if not, how can I fix this?

Thanks in advance.

@buptmiao
Copy link
Owner

Can you attach your code here and please check what is the value of your env variable GOMAXPROCS?

The first thing that comes to my mind is it's a goroutine schedule issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants