This is a question from a mock exam: A malicious applet has been developed to slow a machine down by calculating square roots of huge numbers (thus using plenty of CPU) and by creating a new thread every few seconds. Will this applet work or should the Java security manager stop it? (assuming a strict java security policy)
Surprise surprise the correct answer is the applet will work! Whereas I knew the security.policy file cannot limit the CPU resources the applet uses, I would have thought that it can limit thread creation. I am pretty sure the security.policy can avoid an applet creating processes, but not that sure about threads. Any suggestions? Thanks
This is thought to be an annoyance as opposed to a serious security problem. If you closed your applet viewer the problem goes away. On the otherhand the ability to run animations, downloads, calculations and keep a UI going at the same time is a nice feature.