| | |
JVM reaction to multiple programs?
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
For applets a single VM will typically run all of them for a single INSTANCE of the browser executable (though one could theoretically create a browser that instantiates a new JVM for each applet instance such is AFAIK never done in practice).
The applets will exist in the JVM as separate instances of the same class within a single application space, therefore any static data will be shared between all instances.
This holds true if you have multiple browser windows open, as long as these were created to exist within a single instance of the browser executable.
The applets will exist in the JVM as separate instances of the same class within a single application space, therefore any static data will be shared between all instances.
This holds true if you have multiple browser windows open, as long as these were created to exist within a single instance of the browser executable.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
You should get superior performance as the JVM and classes are loaded only once instead of being loaded for each applet instance separately.
Of course if your applet uses a LOT of instance specific resources you can get into problems with the available memory to the JVM but that's usually a sign of poor design of the applet more than anything else.
Of course if your applet uses a LOT of instance specific resources you can get into problems with the available memory to the JVM but that's usually a sign of poor design of the applet more than anything else.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 8
Hi everyone,
This is an interesting topic.
jwenting if a single vm runs all the applets on a single html page then what about apllications? Does it also use the same jvm to run another application or is another instance of that program created
Richard West
This is an interesting topic.
jwenting if a single vm runs all the applets on a single html page then what about apllications? Does it also use the same jvm to run another application or is another instance of that program created
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
•
•
Join Date: Aug 2005
Posts: 216
Reputation:
Solved Threads: 8
•
•
•
•
Originally Posted by freesoft_2000
Hi everyone,
This is an interesting topic.
jwenting if a single vm runs all the applets on a single html page then what about apllications? Does it also use the same jvm to run another application or is another instance of that program created
Richard West
There are ways of getting the applications to talk to one another, but that is a different topic.
Regards,
Nate
You could of course create a launcher which starts several applications inside a single JVM, but they'd for the JVM all be the same application which would likely play hell on things like Swing user interfaces.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
Other Threads in the Java Forum
- Previous Thread: can anyone help me
- Next Thread: OutOfMemory Error
| Thread Tools | Search this Thread |
-xlint android api applet application array arrays automation bi binary blackberry block bluetooth chat class classes client code compile compiler component database developmenthelp draw eclipse error event exception fractal freeze game gameprogramming givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javac javaprojects jetbrains jni jpanel jtable julia learningresources lego linux list login loop loops mac map method methods mobile netbeans newbie notdisplaying number online oracle page print problem program programming project qt recursion scanner screen server set singleton size sms sort sql string swing system template textfields threads time title tree tutorial-sample update variablebinding windows working xor






