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

What to do about threads in Julia 1.3 #98

Open
meggart opened this issue Aug 9, 2019 · 0 comments
Open

What to do about threads in Julia 1.3 #98

meggart opened this issue Aug 9, 2019 · 0 comments

Comments

@meggart
Copy link
Member

meggart commented Aug 9, 2019

So Julia is getting a new threading model and I think packages are supposed to prepare becoming thread-safe. To my best knowledge, the NetCDF C library is not thread-safe and should not be called from several threads simultaneously, although there has been some discussion on the topic. https://www.unidata.ucar.edu/blogs/developer/entry/implementing-thread-safe-access-to

So I guess one would have to make sure that calls to any netcdf c function would be exclusive among threads by using locks from the Julia side. I think this will probably affect a lot of other wrapper packages around non-thread-safe libraries, so it might make sense to wait a bit and see solutions popping up. Just wanted to bring up the issue now, so people might reference existing solutions.

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