fix busy waiting in twin ballthread #3414
fix busy waiting in twin ballthread #3414omrajshinde534 wants to merge 1 commit intoiluwatar:masterfrom
Conversation
|
⏳ Analyzing changes in this PR... ⏳ This might take a few minutes, please wait 📥 CommitsAnalyzing changes from base (
📁 Files being considered (1)🔄 twin/src/main/java/com/iluwatar/twin/BallThread.java (1 hunk) autogenerated by presubmit.ai |
|
It looks like the presubmit.ai review check is failing due to an external Happy to make changes if required once the check is fixed. |
|
It looks like the Java PR Builder run was cancelled after a long execution time. Please let me know if you’d like me to re-run the checks or make any changes. |
|
This PR is stale because it has been open 60 days with no activity. |
This PR replaces polling-based suspension with a proper wait/notify
mechanism to eliminate busy-waiting and reduce unnecessary CPU usage.
Fixes #2977