Re: garbage collector and real-time

"Mark Hahn" <[email protected]> Tue, 20 Jul 2004 09:36:40 -0700
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
smoerk wrote:

> as i wrote, i have no clue about this stuff, but wonder if you had
> real-time capabilities in mind, when you decided about the gc design.

I don't have any specific applications in mind, but I've just always hated
the idea of having the interpreter stop processing everything while it
garbage collects.  I guess you could say this is sort of a real-time
feature.

It's also laziness on my part.  One of my design goals is to work well with
multiple cpus.  If my garbage collector has to stop the interpreter when it
garbage collects, then I have to design the garbage collector to use all the
cpus efficiently at once which is a real pain.  If it can run continuously
then the collector can run in one of the cpus in one thread which is
extremely efficient and easy to code.