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

the test result is wrong? #3

Open
LiuYinCarl opened this issue Aug 12, 2021 · 0 comments
Open

the test result is wrong? #3

LiuYinCarl opened this issue Aug 12, 2021 · 0 comments

Comments

@LiuYinCarl
Copy link

Environment

OS:Windows WSL(Ubuntu20)
➜  build git:(master) ✗ g++ --version
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

I build the project by CMake. Here is my command.

➜  ChannelsCPP git:(master) ✗ pwd
/home/lzh/github/ChannelsCPP
➜  ChannelsCPP git:(master) ✗ mkdir build
➜  ChannelsCPP git:(master) ✗ cd build/
➜  build git:(master) ✗ cmake .. && make
➜  build git:(master) ✗ ./ChannelsTest
0
1
2
3
4
5
6
7
8
9
------Demo fibonacci (https://tour.golang.org/concurrency/5)-----
0
1
1
2
3
5
8
13
21
34
^C¶
➜  build git:(master) ✗

and the console output is stop at 34 for a very very very long time, I think is't not right.

Is there something wrong in code ?

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

1 participant