aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Can applets create threads? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Can applets create threads?" Watch "Can applets create threads?" New topic
Author

Can applets create threads?

Eduard Manas
Ranch Hand

Joined: May 12, 2002
Posts: 69
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
Ricardo Polero Baraldi
Greenhorn

Joined: Nov 14, 2002
Posts: 26
Yes, the applets can create a threads !
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can applets create threads?
 
Similar Threads
noclassfound error
utilize the CPU to the fullest
MaximumThroughput- MltiThreading - Need help
Stoping all threads in a ThreadPoolExecutor
utilize the CPU to the fullest