-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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
Fix busy-waiting loops #2977
Comments
i am new here, i want to contribute to this project |
Hello, i'm available to work on it |
Thanks, I've just started working on this. |
This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions. |
Hello, this is my first time in open source. |
hey @iluwatar i want to work on this. please assign this issue to me |
Hey @iluwatar i am new to open souce but exited a lot about it . I am good in java , threads , synchronization, deadlocks , starvation and have studied this in operating systems also . I really want to contribute and work upon this . Please assign this to me . I will be very active as this will be my first pull request for hacktober . |
/assign |
Hi @iluwatar |
I’m currently working on this issue. ◼︎After change Change of benefits Could you please review my proposed solution and let me know if you have any feedback? PS Sorry for google translate. |
Hi @iluwatar I would like to work on this project |
Hello @iluwatar . I have been able to study part of the code implementation. And, I will like to work on this issue. |
Hi!, @iluwatar . I'm interested in this issue please assign this issue to me . |
Whats happening here ? |
Description
Busy-waiting, or spinning, is a technique where a process repeatedly checks to see if a condition is true, such as whether keyboard input or a lock is available. While it might seem like a good idea, it has several significant drawbacks:
Instead of busy-waiting, it's generally better to use some form of event-driven programming or blocking. This allows your process to sleep until the condition it's waiting for becomes true, which can save CPU time, improve performance, and make your application more responsive.
Busy-waiting loops are at least in these locations:
Acceptance Criteria
The text was updated successfully, but these errors were encountered: