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

Java Applet not responding https://cs.brynmawr.edu/Courses/cs206/spring2004/lafore.html #54

Open
Entropyi opened this issue Apr 10, 2022 · 1 comment

Comments

@Entropyi
Copy link

Screenshot 2022-04-10 235810

@alexp-sssup
Copy link
Member

Thanks for your report, this applet is unfortunately poorly implemented. It is based on a busy loop that would consume 100% of the CPU also when run with native Java. In the web platform there are no real threads, CheerpJ implements a form of green threading by collaboratively scheduling each Java thread in turn.

With native Java this applet would work since the OS level scheduling will eventually let other threads run as well, interleaved with the inefficient busy loop. But in CheerpJ the other threads have no opportunity of ever running and so the page lockups.

We have written down this test case in our internal bug tracking system and we will let you know if we find a strategy to work-around this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants