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

Applets that freeze. http://nerve.bsd.uchicago.edu/diffusion.html #34

Open
fbezanilla opened this issue May 23, 2019 · 1 comment
Open

Comments

@fbezanilla
Copy link

No description provided.

@alexp-sssup alexp-sssup changed the title Applets that freeze. http://nerve.bsd.uchicago.edu/difussion.html Applets that freeze. http://nerve.bsd.uchicago.edu/diffusion.html May 28, 2019
@alexp-sssup
Copy link
Member

This applet is actually buggy. The system locks-up in a tight spinning loop that never terminates in molec.run. This works using native Java because native threads can be preempted by the OS, but in the browser preemption is not possible. This applet can work with CheerpJ but you need to do some small changes to the code, for example adding a Thread.yield() call to the molec.run method.

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