Is there some type of cap as to how much CPU an applet can use? Or will my code run just as fast as a standard java program?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The problem is that applets typically run as Threads in a JVM embedded in the browser. While you can adjust the priority of a Java thread, there is no way to place CPU caps on them. Indeed, I don’t think you can even set CPU caps with the OS’es native threads. In the case of UNIX and UNIX-like operating systems, CPU usage limits and other limits are implemented on a per process basis.