Skip to content

Conversation

@SakshiHanwat
Copy link

Summary

This pull request fixes the busy waiting loop issue that caused unnecessary CPU usage and improves session handling for better performance and stability.

Changes

  • Replaced busy waiting loops with proper wait-notify synchronization.
  • Enhanced thread communication and error handling.
  • Added code comments for clarity and maintainability.

Impact

This change improves resource efficiency and prevents CPU hogging during long wait cycles.

@github-actions
Copy link

Analyzing changes in this PR...

This might take a few minutes, please wait

📥 Commits

Analyzing changes from base (ede37bd) to latest commit (eb74f69):

  • eb74f69: Fixed busy loop issue and improved session handling
📁 Files being considered (2)

🔄 active-object/src/main/java/com/iluwatar/activeobject/ActiveCreature.java (2 hunks)
🔄 leader-election/src/main/java/com/iluwatar/leaderelection/AbstractInstance.java (6 hunks)


autogenerated by presubmit.ai

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

This PR is stale because it has been open 60 days with no activity.

@github-actions github-actions bot added the Stale label Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant