-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Thread can be unexpectedly suspended within a critical section. #1138
Comments
@liguiding please take took. |
@patacongo another issue related to crtical section: crtical section should be replaced with semphare or spinlock as much as we can to improve SMP performance. |
This would be a new, different issue. |
patacongo
changed the title
Thread can be suspended within a critical section.
Thread can be unexpectedly suspended within a critical section.
Jul 2, 2020
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Occasionally, you will see an odd behavior while within a critical section: A thread may be unexpectedly suspended.
The proposed solution to this problem is to lock the scheduler while within a critical section.
This solution, however, depends first on resolution of Issue #1137
@xiaoxiang781216 Can you clarify the circumstance under which this was recurring. My old, tired brain cannot recall the details. This problem was originally reported by Guiding Li. As I recall there were two scenarios where unexpected context switches occurred: One involved PM state changes and the other involved cancellation of wdog timer. It would be good to get those two failure scenarios detailed here.
The text was updated successfully, but these errors were encountered: