Shawn Erickson wrote:
> On Nov 30, 2007 10:02 AM, Bruno Harbulot
> <email@hidden> wrote:
> > Hello,
> >
> > The reason why there are several processes used for running a Java
> > program is indeed because it's running within the JVM, which uses
> > processes for Just-In-Time compilation and garbage collection amongst
> > other things, on top of the main program's thread.
>
> Just so folks don't get confused... they aren't "processes" that are
> defined and called "threads" in Java.
>
> How Java threads are implemented is well... and implementation
> detail... but on Mac OS X they are built on top of pthreads.
>
To follow on from this: a single program runs as a process, and
can have multiple threads running in that process. Threads can
access memory of other threads in the same process, but not
of threads in a different process.
http://en.wikipedia.org/wiki/Process_(computing)
http://en.wikipedia.org/wiki/Thread_%28computer_science%29
Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden