From: Roedy Green on
On Sun, 24 Jan 2010 19:56:59 -0800 (PST), Jack <junw2000(a)gmail.com>
wrote, quoted or indirectly quoted someone who said :

>If there are several java applications/programs running on the same
>machine, are these java applications/programs using their own JVMs or
>are they share the same JVM?

logically they each have their own JVM, unless you use Echidna.
See http://mindprod.com/jgloss/echidna.html

However most of the JVM on windows is implemented with DLLs which is
shared code. So you have shared code and separate heaps for data.
--
Roedy Green Canadian Mind Products
http://mindprod.com
Don�t be discouraged by a failure. It can be a positive experience. Failure is, in a sense, the highway to success, inasmuch as every discovery of what is false leads us to seek earnestly after what is true, and every fresh experience points out some form of error which we shall afterwards carefully avoid.
~ John Keats (born: 1795-10-31 died: 1821-02-23 at age: 25)
From: Roedy Green on
On Mon, 25 Jan 2010 22:42:38 -0800, Roedy Green
<see_website(a)mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>
>logically they each have their own JVM, unless you use Echidna.
>See http://mindprod.com/jgloss/echidna.html
>
>However most of the JVM on windows is implemented with DLLs which is
>shared code. So you have shared code and separate heaps for data.

Even though they share code, the who JVMs are not aware of the
existence of the other.

OS puts code in read-only, thus shareable memory. It puts data is
separate read-write memory.

The RAM hardware is identical. It is just the memory addressing
hardware is told to block writes to parts of RAM containing code.
--
Roedy Green Canadian Mind Products
http://mindprod.com
Don�t be discouraged by a failure. It can be a positive experience. Failure is, in a sense, the highway to success, inasmuch as every discovery of what is false leads us to seek earnestly after what is true, and every fresh experience points out some form of error which we shall afterwards carefully avoid.
~ John Keats (born: 1795-10-31 died: 1821-02-23 at age: 25)