-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
cysignals is not thread-safe #21
Comments
Interesting read: http://www.dabeaz.com/python/GIL.pdf |
I'd be interested in helping to work on this. I've spent some time in Python's threading code, though really that's less important than just getting it right at the C level. |
The problem is that I want the following properties:
This is a classic case of "pick any two" (the current implementation has properties 2 and 3). |
Right. For a multi-threaded approach I suspect what we're really going to have to have are just completely separate implementations that can be enabled/disabled at compile time and/or runtime. |
I'd like to focus on the case where there is a single thread in Python, but possibly multiple threads in the code guarded by |
Apparently on FreeBSD one cannot link cysignals against multithreaded Pari, it just does not work,
|
I opened issue 122 before checking this. It turns out that While |
It would be nice if cysignals would support multi-threading. This would be useful for use with Python's threading module or with Cython's parallel features.
The text was updated successfully, but these errors were encountered: