|[14 earlier articles]|
|Re: Ada GC (was about Java VM) firstname.lastname@example.org (1996-02-02)|
|Re: Ada GC (was about Java VM) email@example.com (1996-02-02)|
|Re: Ada GC (was about Java VM) root@linux_pc.org (1996-02-03)|
|Re: Ada GC (was about Java VM) firstname.lastname@example.org (1996-02-04)|
|Re: Ada GC (was about Java VM) email@example.com (1996-02-04)|
|Re: Ada GC (was about Java VM) firstname.lastname@example.org (1996-02-04)|
|Re: Ada GC (was about Java VM) email@example.com (1996-02-09)|
|Re: Ada GC (was about Java VM) firstname.lastname@example.org (1996-02-09)|
|Re: Ada GC (was about Java VM) kdm@Rational.COM (1996-02-13)|
|From:||email@example.com (Hans Boehm)|
|Date:||9 Feb 1996 12:05:41 -0500|
|Organization:||Xerox Palo Alto Research Center|
|Keywords:||Ada, realtime, parallel, GC|
firstname.lastname@example.org (Mitch Gart) writes:
>> I was surprised to find out that Java is not really threaded. The
>> virtual machine seems to be doing its own scheduling but there is no
>> OS level threading.
>> True. It is very hard to use OS level threads. However, we are
>> working on a Solaris threads port. The problem is garbage
>> collection, you have to be able to reliably suspend all threads and
>> flush their state out of CPUs in order to do gc. This is hard on
>> Solaris threads.
Just to clarify: This does not mean that garbage collection is
inherently hard in the presence of multiple threads. In fact, both
the interface to and implementation of the threads package probably
become somewhat simpler if you assume the existence of a garbage
collector. PCR threads, Modula 3 threads, etc., work fine with a
garbage collector. PCR is also a 2-level threads package, somewhat
like Solaris threads.
It does mean that many existing threads packages don't export the
right functionality to cleanly add a garbage collector. You run into
the same problems if you try to write a debugger or debugger-like tool
that runs as one of the threads. I personally would blame the threads
It actually is barely possible to run a GC with Solaris threads. Our
collector has worked in this environment for a while. I will admit
the code isn't pretty.
Return to the
Search the comp.compilers archives again.