-
-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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 ? |
Hi @iluwatar. My first guess is that this issue would be best solved by utilising wait, notify, and other concurrency Java libraries. I am free this week to check out and refactor mentioned files. I would appreciate it if you assigned me this task. Much thanks. |
Hello @iluwatar, I would love the opportunity to work on this issue. I have some ideas to reduce constant CPU usage effectively and improve the overall efficiency. |
Hi @iluwatar, I’m interested in tackling the busy-waiting issue in the repo. I'll try to replace busy-waiting with efficient alternatives like wait()/notify() or ScheduledExecutorService while ensuring thread safety and improved performance. |
Hi @iluwatar, I want to contribute to this issue could you please assign it to me ? |
Hello @iluwatar , I would like to work on this issue. Could you please assign it to me? |
I have submitted a pull request. Would appreciate your review @iluwatar |
Hello @iluwatar I would love to work on this issue, would you please assign it to me? |
Hello @iluwatar I want to contribute to this issue, Could you please assign it to me? |
Hello @iluwatar , I would like to work on this issue. Could you please assign it to me? |
Hi @iluwatar , I would like to work on this issue. Could you please assign it to me? |
Hi @iluwatar, I’d like to work on this issue as it aligns with my current learning goals in improving Java code quality and refactoring techniques. I understand the impact of busy-waiting on CPU usage, performance, and responsiveness, as outlined in the issue description. My plan for addressing this issue includes:
Thank you. |
Hello @iluwatar, I’m interested in working on this issue ,Could you please assign it to me? |
Hello @iluwatar, I would love the opportunity to contribute and work on fixing this issue. Could you kindly assign it to me so I can get started? |
Hello @iluwatar , |
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: