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

Math/rand not thread safe #7

Open
steve-hb opened this issue Jun 21, 2024 · 0 comments
Open

Math/rand not thread safe #7

steve-hb opened this issue Jun 21, 2024 · 0 comments

Comments

@steve-hb
Copy link

steve-hb commented Jun 21, 2024

When generating a few million sentences with 16 threads I noticed sudden crashes after few seconds. The reason behind is the use of the math/rand package in a non-synchronized manner.
image

Currently I don't have the time to fix this bug unfortunately, maybe later.

Workaround could be to generate them in one thread and push them into a channel for later use. (that's what I do for one of my tests)

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