Skip to content
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

Fixed busy waiting in point 2 #3125

Closed
wants to merge 5 commits into from
Closed

Conversation

TevaTavo
Copy link

@TevaTavo TevaTavo commented Dec 7, 2024

the run() method now efficiently waits when suspendMe() is called and resumes execution when resumeMe() is invoked. This approach eliminates the need for constant suspension checks during the thread's execution, reducing unnecessary overhead. The thread pauses gracefully while suspended and only resumes performing the drawing and movement tasks when explicitly notified, thereby optimizing performance and conserving system resources.

@TevaTavo TevaTavo closed this Dec 7, 2024
@TevaTavo TevaTavo reopened this Dec 7, 2024
Copy link

github-actions bot commented Feb 6, 2025

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

@github-actions github-actions bot added the Stale label Feb 6, 2025
@iluwatar iluwatar closed this Feb 16, 2025
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.

2 participants