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

Disordered output from FIFO queue #37

Open
AdjWang opened this issue Jul 26, 2023 · 1 comment
Open

Disordered output from FIFO queue #37

AdjWang opened this issue Jul 26, 2023 · 1 comment

Comments

@AdjWang
Copy link

AdjWang commented Jul 26, 2023

Code here: https://go.dev/play/p/FZMhfuOolps
I ran it 10 times and 4 times reported disordered.
Example abnormal output:

panic: disordered result: 449, expected: 448

goroutine 1 [running]:
main.main()
	/tmp/sandbox1192096132/prog.go:58 +0x3d6

Program exited.
@enriquebris
Copy link
Owner

Hi @AdjWang,

I'm going to check your code ASAP.

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